Commit 73b19d0b authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue 15660: Clarify 0 prefix for width field in str.format doc.

parent 3c3ab22d
...@@ -389,9 +389,9 @@ instead. ...@@ -389,9 +389,9 @@ instead.
*width* is a decimal integer defining the minimum field width. If not *width* is a decimal integer defining the minimum field width. If not
specified, then the field width will be determined by the content. specified, then the field width will be determined by the content.
If the *width* field is preceded by a zero (``'0'``) character, this enables Preceding the *width* field by a zero (``'0'``) character enables
zero-padding. This is equivalent to an *alignment* type of ``'='`` and a *fill* sign-aware zero-padding for numeric types. This is equivalent to a *fill*
character of ``'0'``. character of ``'0'`` with an *alignment* type of ``'='``.
The *precision* is a decimal number indicating how many digits should be The *precision* is a decimal number indicating how many digits should be
displayed after the decimal point for a floating point value formatted with displayed after the decimal point for a floating point value formatted with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment