[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Comment about IEEE floating-point rounding... (was: Setting Float Precision in Lua.c)
- From: Levente <leventelist@...>
- Date: Wed, 27 Jun 2018 15:39:32 +0200
I have this on Debian stable:
lev@mercury:~$ lua5.1
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> =1e97 % 97
0
>
lev@mercury:~$ lua5.2
Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> = 1e97 % 97
0
>
lev@mercury:~$ lua5.3
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
> =1e97 % 97
3.0
>
On Wed, Jun 27, 2018 at 3:26 PM, Sergey Zakharchenko
<doublef.mobile@gmail.com> wrote:
> Hello,
>
> I'm sorry to interrupt the number-theoretic discussion but these seem way
> off:
>
>> Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
>> > print(1e97 % 97)
>> -8.8928324534259e+79
>
>> Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
>> > print(1e97 % 97)
>> -8.8928324534259e+79
>
> I get 0 on all platforms I can test Lua 5.[12] on, which is of course as bad
> as 3 but not *this* bad. Could any patches you use have affected this?
>
> Best regards,
>
> --
> DoubleF