nan question
Nathan Reed
nathaniel.reed at gmail.com
Tue Sep 25 10:50:30 PDT 2007
bobef wrote:
> 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).
I'm assuming you meant to say that it makes no sense if double.nan ==
double.nan returns false? But if NaNs compared equal to each other,
then this:
sqrt(-1) == acos(2)
would be true, since both return a NaN. I bet you don't really want that.
Thanks,
Nathan Reed
More information about the Digitalmars-d
mailing list