Mail Archives: djgpp-workers/1999/01/19/08:42:53
On Tue, 19 Jan 1999, Stephen L Moshier wrote:
> I'm pretty sure the Intel coprocessor manual will say that is an invalid
> bit pattern, because the most significant bit of the significand is
> not set while the exponent is something other than 0 or 7fff.
Right. As far as I could see, such numbers are called ``unnormals''.
> Try
> adding zero to it, as in the following. The coprocessor should turn
> it into a NaN pattern.
Are you saying that you think such numbers should print as "NaN"?
If so, I'm afraid that would mislead people.
For example, passing such numbers to the `is_nan' function will return
zero, since they don't have the special bit pattern of a NaN.
- Raw text -