summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/whatsnew/2.7.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst
index 205d232b45..fa041907f4 100644
--- a/Doc/whatsnew/2.7.rst
+++ b/Doc/whatsnew/2.7.rst
@@ -207,7 +207,7 @@ mini-language used by the string :meth:`format` method. When
formatting a floating-point number, simply include a comma between the
width and the precision::
- >>> '{:20,.2}'.format(f)
+ >>> '{:20,.2f}'.format(18446744073709551616.0)
'18,446,744,073,709,551,616.00'
This mechanism is not adaptable at all; commas are always used as the