On Wed, 6 Jul 2011, Hans-Christoph Steiner wrote:
Yes, it does loose a bit with the %g. AFAIK, the %g just simplifies a little bit, i.e. down to 6 decimal digits while the actual number format can represent about 6.5 decimal digits.
log10(16777216) = about 7.22 decimal digits.
log10(8388608) = about 6.92 decimal digits.
However, the top bit is normally counted in those circumstances : it's the only bit to be significant even though it can't be a zero and it doesn't have to be recorded. It's just like the first decimal digit has to be between 1 and 10 because it can't be a zero.
So the answer is 7.22 decimal digits.
(Yes, Pd could have used 7 decimal digits but uses 6 instead)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC