Mail Archives: djgpp-workers/2000/03/16/06:19:36
On Thu, 16 Mar 2000, Martin Stromberg wrote:
> If the FPU treats them as nans, aren't they nans? Why are you saying
> they aren't nans?
A NaN has a specific bit pattern, which these numbers lack. So calling
them NaNs would be misleading; in particular, library function `isnan'
might as well return zero for these numbers (I didn't check, though).
> I suggest we print "nan(unnormal)" or "nan(unnormal0x<bit pattern>)"
> where <bit pattern> is the bits of the double float in hexadecimal.
I'm still not sure this is allowed, but if it is, I think that
"nan(0x<bit pattern>)" is enough.
- Raw text -