[geos-devel] #define DoubleNotANumber 1.7e-308
David Blasby
dblasby at refractions.net
Fri Aug 1 17:45:37 EDT 2003
Why is NaN being defined (platform.h) as a valid number?
Shouldn't it be defined as one of the actual NaNs?
(a != a) iff a is NaN
From ieee754.h:
struct
{
#if __BYTE_ORDER == __BIG_ENDIAN
unsigned int negative:1;
unsigned int exponent:8;
unsigned int quiet_nan:1;
unsigned int mantissa:22;
#endif /* Big endian. */
#if __BYTE_ORDER == __LITTLE_ENDIAN
unsigned int mantissa:22;
unsigned int quiet_nan:1;
unsigned int exponent:8;
unsigned int negative:1;
#endif /* Little endian. */
} ieee_nan;
dave
More information about the geos-devel
mailing list