[docs] [issue24281] String formatting: incorrect number of decimal places

Eric V. Smith report at bugs.python.org
Tue May 26 13:03:22 CEST 2015


Eric V. Smith added the comment:

And I just double checked: the entirety of the sentence you quoted is:

The precision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value formatted with 'f' and 'F', or before and after the decimal point for a floating point value formatted with 'g' or 'G'.

I think that's reasonably clear for 'g' and 'G', but if you think it could be improved, I'm open to suggestions. Maybe the disconnect is that 'g' is the default?

The only reason I'm following up on this is that I'm familiar with all of this, yet it still took me some experimenting to remember what the issue is.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24281>
_______________________________________


More information about the docs mailing list