Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
73b19d0b
Commit
73b19d0b
authored
Aug 17, 2012
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 15660: Clarify 0 prefix for width field in str.format doc.
parent
3c3ab22d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/library/string.rst
Doc/library/string.rst
+3
-3
No files found.
Doc/library/string.rst
View file @
73b19d0b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment