[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Modulo infinity
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 30 Mar 2014 17:10:44 +0200
2014-03-30 14:19 GMT+02:00 Egor Skriptunoff <egor.skriptunoff@gmail.com>:
> Mathematically, for any finite non-negative number N
> N % math.huge == N
> But this equation does not hold in Lua.
Because math.huge is not a finite non-negative integer. The result
NaN is, correctly, standard on any IEEE 754 compliant hardware.