Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b1a116

Browse files
committed
Merged revisions 79826 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r79826 | eric.smith | 2010-04-06 10:30:15 -0400 (Tue, 06 Apr 2010) | 1 line Fixed PEP 378 example. ........
1 parent 154811d commit 2b1a116

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/whatsnew/2.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ mini-language used by the string :meth:`format` method. When
207207
formatting a floating-point number, simply include a comma between the
208208
width and the precision::
209209

210-
>>> '{:20,.2}'.format(f)
210+
>>> '{:20,.2f}'.format(18446744073709551616.0)
211211
'18,446,744,073,709,551,616.00'
212212

213213
This mechanism is not adaptable at all; commas are always used as the

0 commit comments

Comments
 (0)