Re: Exponent Format specifiers for %g
- From: "P.J. Plauger" <pjp@xxxxxxxxxxxxxx>
- Date: Tue, 3 Apr 2007 10:02:45 -0400
"Ben Voigt" <rbv@xxxxxxxxxxxxx> wrote in message
news:O1RwPNfdHHA.4720@xxxxxxxxxxxxxxxxxxxxxxx
"Charles Wang[MSFT]" <changliw@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:m8k9kqcdHHA.4568@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi, Buddy,
Appreicate your understanding that this is by design. There is no way to
control the format of the exponent in VC++. In VC++, there is just 3
digits
of the exponent. You can say it is the least and also the most. So it can
provide a consitent output format with 3 digits of the exponent.
It is not consistent with the ANSI standard for printf.
It *is* consistent with C89, the original C Standard. It
is not consistent with C99, the current C Standard, but that
is just one of many ways in which the Microsoft C library
fails to conform to C99, so what the heck.
If there's sufficient demand by customers, Microsoft might
feel moved to upgrade to C99, but so far it has apparently
not been a high priority item.
P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
.
- References:
- RE: Exponent Format specifiers for %g
- From: Charles Wang[MSFT]
- RE: Exponent Format specifiers for %g
- From: Buddy Lott
- RE: Exponent Format specifiers for %g
- From: Charles Wang[MSFT]
- Re: Exponent Format specifiers for %g
- From: Ben Voigt
- RE: Exponent Format specifiers for %g
- Prev by Date: Re: Switching from console to Wxwidgets app?
- Next by Date: Re: Switching from console to Wxwidgets app?
- Previous by thread: Re: Exponent Format specifiers for %g
- Next by thread: Re: Exponent Format specifiers for %g
- Index(es):
Relevant Pages
|