diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2012-08-17 19:37:52 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2012-08-17 19:37:52 (GMT) |
| commit | 73b19d0b004d3d490b2f6ec2afeb9e64262f65a8 (patch) | |
| tree | fd32e37ad22a03306ef0c49f9be56ac8291849c2 | |
| parent | 3c3ab22d364b7eeba049a6695eb0168be80415d5 (diff) | |
| download | cpython-73b19d0b004d3d490b2f6ec2afeb9e64262f65a8.zip cpython-73b19d0b004d3d490b2f6ec2afeb9e64262f65a8.tar.gz cpython-73b19d0b004d3d490b2f6ec2afeb9e64262f65a8.tar.bz2 | |
Issue 15660: Clarify 0 prefix for width field in str.format doc.
| -rw-r--r-- | Doc/library/string.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index ee6dbbc..0eda746 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -389,9 +389,9 @@ instead. *width* is a decimal integer defining the minimum field width. If not specified, then the field width will be determined by the content. -If the *width* field is preceded by a zero (``'0'``) character, this enables -zero-padding. This is equivalent to an *alignment* type of ``'='`` and a *fill* -character of ``'0'``. +Preceding the *width* field by a zero (``'0'``) character enables +sign-aware zero-padding for numeric types. This is equivalent to a *fill* +character of ``'0'`` with an *alignment* type of ``'='``. The *precision* is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value formatted with |
