Just out of curiosity: how come a NaN is never equal
to itself??
Michel.P
--- Ben Combee <[EMAIL PROTECTED]> wrote:
> A NaN (not a number) will never be equal to itself.
> If value is a float or
> double, then writing
>
> if (value != value) { /* value is NaN */ }
>
> is a quicker way. If a full C99 standard library
> was available, then using
> the fpclassify call would be the cleanest method.
>
> --
> 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/
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/