[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Comment about IEEE floating-point rounding... (was: Setting Float Precision in Lua.c)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 26 Jun 2018 15:08:30 -0300
>> print(1e97 % 97)
> I don't think any of these are right.
The correct result is 10 because of Fermat's little theorem since
97 is prime.