Re: [HACKERS] NAN code - Mailing list pgsql-hackers

From Hal Snyder
Subject Re: [HACKERS] NAN code
Date
Msg-id 87u2y7m7co.fsf@hippo.roxor.org
Whole thread Raw
In response to Re: [HACKERS] NAN code  (orion.SAPserv.Hamburg.dsh.de!wieck@sapserv.debis.de)
List 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.


pgsql-hackers by date:

Previous
From: orion.SAPserv.Hamburg.dsh.de!wieck@sapserv.debis.de
Date:
Subject: Re: [HACKERS] a test
Next
From: Constantin Teodorescu
Date:
Subject: Re: [HACKERS] SQLJ