lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Rounding a number to integer
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Sun, 31 Jul 2016 13:16:07 +0300
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
References
:
Rounding a number to integer
,
=?gb18030?b?uq3q2A==?=
Re: Rounding a number to integer
,
Dirk Laurie
Prev by Date:
Re: Rounding a number to integer
Next by Date:
Re: Binding Libraries: A (Performance) Comparison
Previous by thread:
Re: Rounding a number to integer
Next by thread:
答复: Rounding a number to integer
Index(es):
Date
Thread