lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.