[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %.6g format not interpretted correctly
From: |
Eric Blake |
Subject: |
Re: %.6g format not interpretted correctly |
Date: |
Thu, 24 Sep 2009 22:04:23 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to EXT-Germain, Marvin E on 9/24/2009 1:15 PM:
> %.6g format not interpretted correctly
>
> This also affects the "print" statement's handling of numbers, since OFMT =
> %.6g.
> Test program compares .6g format to .6f and .6e. It should be the same as one
> of them,
Not a bug. POSIX is explicit that in printf formatting, for .6g, 6
specified the number of significant digits; but for .6f and .6e it
specifies the number of digits after the decimal (which is not necessarily
the number of significant digits).
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkq8QUcACgkQ84KuGfSFAYAi0wCeLn0fxqYmGfYNB+ek+SIbiJmn
PxQAnRxLaIslkqoqyRTCTbGRb67gZ30q
=bys3
-----END PGP SIGNATURE-----