Re: [HACKERS] NAN code

Hal Snyder <hal@enteract.com>

From: Hal Snyder <hal@enteract.com>
To: hackers@postgresql.org
Date: 1999-01-04T14:37:59Z
Lists: pgsql-hackers
orion.SAPserv.Hamburg.dsh.de!wieck@sapserv.debis.de writes:

>     Seems  that only isnan() is defined as part of Posix. But not
>     a definition that can force a NAN.  So  we  have  to  find  a
>     portable  way  to  define the value NaN for double and float.
>     Does anybody know of such a way?

Bruce changed it to defining NAN as (0.0/0.0) if NAN isn't already
defined. This works on FreeBSD. I don't know if it will break on other
systems that don't have NAN already.