Mail Archives: djgpp-workers/1999/01/20/02:07:16
On Tue, 19 Jan 1999, Stephen L Moshier wrote:
> Yes, IEEE says for single and double precision a NaN has the maximum
> exponent value and any nonzero fraction.
Exactly. And the bit pattern in the example we had didn't match this
definition.
> Extended formats are required to have at least one quiet and one
> signaling NaN, but the bit patterns are not specified. IEEE further says
> "An implementation may also reserve some bit strings for purposes
> beyond the scope of this standard" (IEEE 754-1985 para 3.3).
I think, ultimately, we must be compatible with the processor that
runs the code (without violating standards, of course). For this
reason, it is IMHO wrong to print "NaN" for something the processor
doesn't consider as such. We need to find a different string.
- Raw text -