nan question

Steven Schveighoffer schveiguy at yahoo.com
Tue Sep 25 10:52:32 PDT 2007


"bobef" <bobef at abv_nospam.bg> wrote in message 
news:fdbedv$2pu2$1 at digitalmars.com...
> Janice Caron Wrote:
>
>> On 9/25/07, bobef <bobef at abv_nospam.bg> wrote:
>> > something is totally wrong. Just look at this. "!<>="
>>
>> Well consider, the imaginary number i is not less than one. It is also
>> not greater than one. It is also not equal to one. It makes perfect
>> sense.
>
> I can't imagine such number, sorry :) But let aside my imagination. I 
> don't know what imaginary number is, so I am not commenting if it makes 
> sense. All I'm saying it that it is nonsense that 
> if(double.nan!=double.nan) returns false (IMHO).

>From what I can recall reading on this message board, the behavior is 
exactly described as correct in the IEEE standard.  Therefore, the answer is 
that the behavior works as designed.  You need to address the rediculousness 
of it with the IEEE committee that designed the standard :)

-Steve 





More information about the Digitalmars-d mailing list