[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: simple question about NaN and FP exceptions
- From: Chris Babcock <cbabcock@...>
- Date: Wed, 23 Feb 2011 09:22:11 -0700
On Tue, Feb 22, 2011 at 10:41 AM, Renato Maia <maia@inf.puc-rio.br> wrote:
> On 21 Feb 2011, at 18:37, Dirk Laurie wrote:
>>
>> (a) NaN is to numbers what nil is to Lua values: not-a-number vs
>> not-a-value. It makes intuitive sense that it should be logically
>> different from numbers.
>
> OK, but why this implies NaN should evaluate to false?
Not a value can be none of greater than, equal to or less than a number.
Lua's default behavior with respect to NaN is based on standards
compliance - IEEE 754 as cited in PiL 13.2.
Chris
--
Yippee-ki-yay, coffee maker.