lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Oops, you're right, I did forget to add an equals sign. 😔 Sorry for
spreading misinformation.

— Gabriel



On Thu, Nov 8, 2018 at 5:39 AM Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>
> > 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
>