How can I convert a string to an integer in Lua?
I have a string like this:
a = \"10\"
I would like it to be converted to 10, the n
You can force an implicit conversion by using a string in an arithmetic operations as in a= "10" + 0, but this is not quite as clear or as clean as using tonumber explicitly.
a= "10" + 0
tonumber