lua-users home
lua-l archive

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

Should be NAN
----- Original Message -----
Sent: Monday, March 31, 2014 8:30 PM
Subject: Re: Modulo infinity

On Sun, Mar 30, 2014 at 3:39 PM, Thiago L. <> wrote:
On 30/03/2014 09:19, Egor Skriptunoff wrote:
Mathematically, for any finite non-negative number N
N % math.huge == N
But this equation does not hold in Lua.
Should we talk about 1^math.huge being 1?

I don't see a problem with
assert(1^math.huge == 1)
It works fine.