14 Nov
2005
14 Nov
'05
12:23 a.m.
On Sun, 2005-11-13 at 16:02 -0800, Robert Ramey wrote:
Truth is, I don't even know how one goes about assigning a NaN or a +/inf to floating/double variable !!
Robert Ramey
I found this link which shows code from the libxml2 project. http://cvs.gnome.org/viewcvs/libxml2/trionan.c?rev=1.14 Its interesting to note the 'trio_pinf' function for setting a double to positive infinity. They have a function called 'trio_ninf' for setting a double to negative infinity. Finally 'trio_nan' for handling NaN. Is this what your looking for Robert? Stephen