[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: infnan()?



You should also be able to use the constant _QNAN. Check out /usr/include/nan.h.

Stuart Marshall wrote:

> Hi,
>
> I would like to use NaN's.  It appears that isnan()
> works as advertised so I can check for NaN.  However,
> there is a man page for infnan() but no such function
> appears to be available.  Does anyone know the proper
> way to generate a NaN value?  (I am using NaN as an
> initialization value so that I can check that a valid
> value is used later.)  For the moment I am using NAN
> as defined in nan.h but it requires the use of
> "#define _GNU_SOURCE 1".  I would like to keep the code
> somewhat portable.
>
> thanks,
> Stuart
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



--
Jens B. Jorgensen
jjorgens@bdsinc.com



--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: