[comp.sys.ibm.pc.programmer] Not A Number in IEEE Math

john@newave.UUCP (John A. Weeks III) (02/16/90)

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@newave.mn.org
NeWave Communications                ...uunet!rosevax!bungia!wd0gol!newave!john
===============================================================================