Lua converts numbers as:
print(tostring(10)) => "10" print(tostring(10.0)) => "10.0" print(tostring(10.1)) => "10.1"
If you want to play with them, there is a small online parser for simple commands, such as: http://www.lua.org/cgi-bin/demo This uses Lua 5.3.1
edit I have to support Yegorโs comment, it depends on the version. I ran this locally on my system:
Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio > print(tostring(10)) 10 > print(tostring(10.0)) 10
source share