[geos-devel] NaN

Paul Ramsey pramsey at refractions.net
Mon Aug 18 21:33:24 EDT 2003


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
      \_





More information about the geos-devel mailing list