|
Boost Users : |
From: Stephen Torri (storri_at_[hidden])
Date: 2005-11-13 19:23:05
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net