www.delorie.com/archives/browse.cgi | search |
Date: | Sat, 16 Jun 2001 18:02:02 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | djgpp AT delorie DOT com |
Message-Id: | <1190-Sat16Jun2001180202+0300-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
In-reply-to: | <3b2b5a7e.169695543@news.primus.ca> (invalid@erehwon.invalid) |
Subject: | Re: Mysterious NaNs... |
References: | <3b2b4290 DOT 163568911 AT news DOT primus DOT ca> <2561-Sat16Jun2001155617+0300-eliz AT is DOT elta DOT co DOT il> <3b2b5a7e DOT 169695543 AT news DOT primus DOT ca> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: invalid AT erehwon DOT invalid (Graaagh the Mighty) > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 16 Jun 2001 14:18:04 GMT > > The problem is basically that I have a loop that updates some doubles; > at the end of each iteration it tests these for NaN, then it tests > them for lying in a certain range. Why did you need to test for NaNs at all? Testing for a NaN is a bit tricky, since it is defined to fail any test instruction. My advice would be to avoid futzing with NaNs in the first place. Do you really have NaNs in your computations, and if so, is there a way to get rid of them?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |