Re: NAN in libgnomeui
- From: Tom Tromey <tromey cygnus com>
- To: Tristan Tarrant <ttarrant suntlc etnoteam it>
- Cc: Gnome Mailing List <gnome nuclecu unam mx>
- Subject: Re: NAN in libgnomeui
- Date: 21 Apr 1998 22:41:09 -0600
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...
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]