lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Jul 29, 2016 at 11:10 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
math.floor(x+0.5)

Wrong results for some integers

> x = 2^52+1
> x|0
4503599627370497
> math.floor(x+0.5)
4503599627370498