09.05.2022, 09:57
(09.05.2022, 09:33)admin Wrote: This should work:
Code:num = 1000000012345685
str = string.format("%.16g", num)
My issue is elsewhere...
The POST request returns 1000000012345685 as body in a JSON formatted reply
LUA Automatically converts 1000000012345685 to 1.00000001234568e+15
I need to prevent the automatical conversion to scientific notation OR assume such number as string