How to convert string to number?
please help me!
How to convert string to number?
Started by Konlab, May 27 2014 12:15 PM
5 replies to this topic
#1
Posted 27 May 2014 - 12:15 PM
#2
Posted 27 May 2014 - 02:32 PM
Did you not even google "Lua convert string to number"?
local num = tonumber(str)
#3
Posted 27 May 2014 - 02:33 PM
Or from an input:
tonumber(read())
Edited by Agoldfish, 27 May 2014 - 02:38 PM.
#5
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users












