Re: Modulo infinity
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Modulo infinity
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2014年3月30日 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.