|
The same test under Lua 5.3.3 on Linux Mint 17 gives wrong result only for math.floor:Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
; a = 2^53-1
; =("%.f"):format(a)
9007199254740991
; =(-a)%(a-1)
9.007199254741e+15
; =math.floor((-a)/(a-1))
-1