Not A Number in IEEE Math

John A. Weeks III john at newave.UUCP
Fri Feb 16 16:13:29 AEST 1990


My understanding of the NaN (not a number) value in IEEE math is
that once you get NaN, the operators +, -, /, *, and = are supposed
to propagate the NaN value.  Is my understanding correct?

Well, while using MetaWare's HIGH-C compiler for the 80386 chip, I
have discovered that:

			NaN / NaN = 1.0

			      and

			0.0 * NaN = 0.0.

Is this correct behavior?  I think HIGH-C is broken...

-john-

-- 
===============================================================================
John A. Weeks III               (612) 942-6969               john at newave.mn.org
NeWave Communications                ...uunet!rosevax!bungia!wd0gol!newave!john
===============================================================================



More information about the Comp.lang.c mailing list