[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Apologies for bad formatting: lecture slides etc.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 8 Nov 2018 09:39:15 -0200
> It is apparently not a valid number in Lua 5.1 though, where I get a
> syntax error "unexpected symbol near 1e-4". So maybe you're using Lua
> 5.1, not 5.3?
1e-4 is a valid Lua number since day one (version 1.0). Maybe you forgot
the '=' to print it? (Until version 5.2, Lua did not directly read/print
expressions in interactive mode. You have to prefix them with a '='.)
-- Roberto