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 [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Jens B. Jorgensen [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]