At 02:25 2002-10-16 -0700, you wrote:
>Just out of curiosity: how come a NaN is never equal
>to itself??

That is part of the definition of NaN in the IEEE floating point standard.

I highly recommend at least skimming 
http://docs.sun.com/source/806-3568/ncg_goldberg.html, "What Every Computer 
Scientist Should Know About Floating Point".  NaN isn't equal to itself by 
convention, and this is actually a useful property in practice.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to