lua-users home
lua-l archive

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


> 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