Mail Archives: djgpp-workers/2000/03/20/05:51:04
On Sun, 19 Mar 2000, Martin Str|mberg wrote:
> > > The C99 explicitly mentions signs of NaNs in its output specification for
> > > *printf(), and also in strtod()/*scanf() input. I don't think we can just
> > > say the a NaN with the sign bit set is *not* negative.
> >
> > I think we can, since the sign bit of a NaN is not an indication of
> > it's being negative, when the real indefinite is concerned.
>
> My reading of the standard says the sign of a negative NaN should be
> printed. Nowhere it says we are allowed not to print it.
The standard talks about ``the sign of a negative NaN'', assuming that
a NaN _has_ a sign. But the ``real indefinite'' does NOT have a sign,
as Intel manuals clearly say ("the sign bit [...] is not interpreted").
> Please read the standard and form your own opinion.
I _have_ read the standard. I just don't cope well with its
lawyer-style language and abysmal lack of examples to clarify what it
means, so I prefer to listen for interpretations of others...
- Raw text -