[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: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 27 Jun 2018 10:41:57 -0300
> 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?
On Mac OS X 10.11.6 I get
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> print(1e97 % 97)
0
Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> print(1e97 % 97)
0
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
> print(1e97 % 97)
3.0