lua-users home
lua-l archive

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


On Wed, Apr 23, 2014 at 1:53 PM, Aapo Talvensaari
<aapo.talvensaari@gmail.com> wrote:
>> > return 0/0
>> -nan
>
>
> It's rather interesting that not-a-number is a number:
>
> if type(0/0) == "number" then
>     print("not-a-number is a number")
> end

You should think of NaN as not being a number within the context/type
of numbers :o