Mail Archives: djgpp-workers/1999/01/20/08:21:55
On Wed, 20 Jan 1999, Eli Zaretskii wrote:
> 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.
>
The C9X standard seems to require `NAN' but it may be followed by
additional characters. DEC alpha osf currently prints `NaNQ' for
a quiet NaN.
A
double argument representing a NaN is converted in
one of the styles [-]nan or [-]nan(n-char-sequence)
-- which style, and the meaning of any n-char-
sequence, is implementation-defined. The F
conversion specifier produces INF, INFINITY, or NAN
instead of inf, infinity, or nan, respectively.218)
- Raw text -