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 make an accessor to keep the "10" as int 10 in it.
Example:
x = tonumber("10")
if you print the x variable, it will output an int 10 and not "10"
same like Python process
x = int("10")
Thanks.