<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [geos-devel] NaN</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>Todd V.</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Paul Ramsey [<A HREF="mailto:pramsey@refractions.net">mailto:pramsey@refractions.net</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, August 18, 2003 7:33 PM</FONT>
<BR><FONT SIZE=2>To: GEOS Development List</FONT>
<BR><FONT SIZE=2>Subject: [geos-devel] NaN</FONT>
</P>
<BR>

<P><FONT SIZE=2>What is this about? Doesn't C++ have some standards for representing </FONT>
<BR><FONT SIZE=2>NaN, Inf, and -Inf?</FONT>
<BR><FONT SIZE=2>Paul</FONT>
</P>

<P><FONT SIZE=2>&nbsp; #ifndef GEOS_PLATFORM_H</FONT>
<BR><FONT SIZE=2>&nbsp; #define GEOS_PLATFORM_H</FONT>
<BR><FONT SIZE=2>&nbsp; //Defines NaN for intel platforms</FONT>
<BR><FONT SIZE=2>&nbsp; #define DoubleNotANumber 1.7e-308</FONT>
</P>

<P><FONT SIZE=2>&nbsp; //Don't forget to define infinities</FONT>
<BR><FONT SIZE=2>&nbsp; #define DoubleInfinity 1.7e+308</FONT>
<BR><FONT SIZE=2>&nbsp; #define DoubleNegInfinity -1.7e+308</FONT>
</P>

<P><FONT SIZE=2>&nbsp; #endif</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Paul Ramsey</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Refractions Research</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Email: pramsey@refractions.net</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Phone: (250) 885-0632</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \_</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>geos-devel mailing list</FONT>
<BR><FONT SIZE=2>geos-devel@geos.refractions.net</FONT>
<BR><FONT SIZE=2><A HREF="http://geos.refractions.net/mailman/listinfo/geos-devel" TARGET="_blank">http://geos.refractions.net/mailman/listinfo/geos-devel</A></FONT>
</P>

</BODY>
</HTML>