[geos-devel] NaN
Todd Vollmer
tvollmer at digitalglobe.com
Tue Aug 19 10:37:08 EDT 2003
I don't believe that C++ has a standard for any that you mention. It is
machine dependant. NAN is a IEEE standard. Take a look in the math.h for NAN
references.
Todd V.
-----Original Message-----
From: Paul Ramsey [mailto:pramsey at refractions.net]
Sent: Monday, August 18, 2003 7:33 PM
To: GEOS Development List
Subject: [geos-devel] NaN
What is this about? Doesn't C++ have some standards for representing
NaN, Inf, and -Inf?
Paul
#ifndef GEOS_PLATFORM_H
#define GEOS_PLATFORM_H
//Defines NaN for intel platforms
#define DoubleNotANumber 1.7e-308
//Don't forget to define infinities
#define DoubleInfinity 1.7e+308
#define DoubleNegInfinity -1.7e+308
#endif
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
_______________________________________________
geos-devel mailing list
geos-devel at geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20030819/f3a12e91/attachment.html
More information about the geos-devel
mailing list