128 posts
Location
Poland
Posted 26 May 2013 - 03:09 PM
As I say in topic, my question is: How to change string to number?
Please help!
167 posts
Posted 26 May 2013 - 03:20 PM
tonumber(string)
128 posts
Location
Poland
Posted 26 May 2013 - 03:24 PM
ohhhh, thanks forgot about this :/
7508 posts
Location
Australia
Posted 26 May 2013 - 11:16 PM
also it should be noted that the `tonumber` function can also accept a
radix.
tonumber( [string], [radix] )
So something like
tonumber("f", 16)
would convert the hexadecimal `f` (base-16) into decimal `15` (base-10)