[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Infinity as index
- From: Coroutines <coroutines@...>
- Date: Wed, 23 Apr 2014 13:58:13 -0700
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