Mail Archives: djgpp-workers/2000/03/21/02:20:25
According to Eli Zaretskii:
>
> On Mon, 20 Mar 2000, Martin Stromberg wrote:
>
> > Perhaps the n-char-sequence shall be used to show the bitpattern of
> > the NaN? Then we would see the sign if we knew what bit it is...
>
> This is also a possibility I won't object.
I've just discovered chapter 7.12.11.1, copysign():
"double copysign(double x, double y);
...
The copysign functions produce a value with the magnitude of x and the
sign of y. They produce a NaN (with the sign of y) if x is a NaN."
This means the standard do think that NaNs have a sign (however
misguided that is), hence we really do need to print the "-" of a
negative NaN. Period.
Right,
MartinS
- Raw text -