Martin Sebor
Fri, 22 Jun 2007 07:56:19 -0700
Farid Zaripov wrote:
[...]-----Original Message-----From: Martin Sebor [EMAIL PROTECTED] Sent: Thursday, June 21, 2007 8:56 PMTo: stdcxx-dev@incubator.apache.org Subject: Re: STDCXX examples fails and reasons [MSVC]limits.cpp should produce the qnan for Quiet NAN and snan for Signaling NAN on all platforms.I can't find this requirement in standard.
It's not in the C++ standard but it is in C99, under fprintf(),
the f and F conversion specifier:
A double argument representing an infinity is converted
in one of the styles [-]inf or [-]infinity — which style
is implementation-defined. 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.
Martin