779 posts
Location
Kerbin
Posted 27 May 2014 - 01:15 PM
How to convert string to number?
please help me!
8543 posts
Posted 27 May 2014 - 03:32 PM
Did you not even google "Lua convert string to number"?
local num = tonumber(str)
571 posts
Location
Some Fish Bowl in Ohio.
Posted 27 May 2014 - 03:33 PM
Or from an input:
tonumber(read())
Edited on 27 May 2014 - 01:38 PM
7508 posts
Location
Australia
Posted 27 May 2014 - 03:36 PM
Or from an input:
local derp = read(tonumber())
Or is it…
tonumber(read())
I haven't used it in a while.
…if you don't know… don't help…
it is the second one btw.
571 posts
Location
Some Fish Bowl in Ohio.
Posted 27 May 2014 - 03:37 PM
Or from an input:
local derp = read(tonumber())
Or is it…
tonumber(read())
I haven't used it in a while.
…if you don't know… don't help…
it is the second one btw.
Well I obviously did know, I got it right. :P/>
1852 posts
Location
Sweden
Posted 27 May 2014 - 03:38 PM
Here's something that's really useful!
LinkSpoiler
Yes I know it's Google.. But please search before asking questions here..
Edited on 27 May 2014 - 01:38 PM