trouble dealing with floatingpoint numbers
Posted: Tue Oct 27, 2015 2:32 pm
I'm using: NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
While dealing with floatingpoint numbers I get just integers as result as in
> print(10/3)
3
or error messages like
> print(10.456)
stdin:1: malformed number near '10.456'
> print(tonumber("123.456e5"))
nil
Whats wrong, what do I miss?
Thank you!
While dealing with floatingpoint numbers I get just integers as result as in
> print(10/3)
3
or error messages like
> print(10.456)
stdin:1: malformed number near '10.456'
> print(tonumber("123.456e5"))
nil
Whats wrong, what do I miss?
Thank you!