Not A Number in IEEE Math
G. Simon Gales
simon at ms.uky.edu
Wed Feb 21 23:26:13 AEST 1990
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 at The University of Kentucky
simon at ms.uky.edu | 'Fate... protects fools, little children,
simon at UKMA.BITNET | and ships named Enterprise.'
{rutgers, uunet}!ukma!simon | - Riker, ST:TNG
More information about the Comp.lang.c
mailing list