This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LUA Scientific Conversion loose decimal
#6
Just my last post to specify the wired behaivour and by my understanding it is something to work on....

I was able to reproduce the issue and looks to me to be a sort of bug:

Have a double number

Code:
local d = 1000000012345685
log(d)
-- shown as 1.00000001234568e+15
log(string.format('%.0f', d)
-- shown as 1000000012345685
storage.set('double', d)
d = nil
d = storage.get('double')
log(d)
-- shown as 1.00000001234568e+15
log(string.format('%.0f', d)
-- shown as 1000000012345680
Reply


Messages In This Thread
RE: LUA Scientific Conversion loose decimal - by emme - 10.05.2022, 06:13

Forum Jump: