Re: NAN in libgnomeui

Tristan> Someone checked in some code for gnome-calculator.c which
Tristan> assigns the constant NAN to some variables.

Tristan> Under Solaris 2.5, such a constant does not exist. There are
Tristan> only some defines which return true if a value is a NAN.

Tristan> I don't know how to replace NAN with a portable equivalent.

I was under the impression that computing `1.0 / 0' would yield a NaN.
I haven't looked at floating point in several years, however, so my
memory is suspect.  You could easily write a test program, though.  If
it works, you could send in a patch to fix this...


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