Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ukma!simon From: simon@ms.uky.edu (G. Simon Gales) Newsgroups: comp.lang.c Subject: Re: Not A Number in IEEE Math Keywords: IEEE floating point Message-ID: <14266@s.ms.uky.edu> Date: 21 Feb 90 12:26:13 GMT References: <44@newave.UUCP> Reply-To: simon@ms.uky.edu (G. Simon Gales) Organization: U of Kentucky, Mathematical Sciences Lines: 15 I think that that behavior is correct. 0.0 * (anything) = 0.0 and NaN / NaN = 1.0 Also a NaN/NaN situation is usually treated as 1, but this is definitely not intended to be a -correct- result. If you end up with NaNs in your computation's results, you can't trust the answers you get. -- Simon Gales@The University of Kentucky simon@ms.uky.edu | 'Fate... protects fools, little children, simon@UKMA.BITNET | and ships named Enterprise.' {rutgers, uunet}!ukma!simon | - Riker, ST:TNG