Just noticed that tostring() and tonumber() in Lua is locale dependent. Any idea of how to convert a string to a number without using tonumber()? Thanks.
e.g. convert string "-58.5" to -58.5
Also when I tried to pass a number with dot to a function, the function converts "." to "," automatically. How do you usually solve this kind of problems?
function test(num) print(num) end
test(-58.5) -- it prints -58,5