]> granicus.if.org Git - python/commitdiff
Added 'n' presentation type for integers.
authorEric Smith <eric@trueblade.com>
Mon, 12 May 2008 14:00:01 +0000 (14:00 +0000)
committerEric Smith <eric@trueblade.com>
Mon, 12 May 2008 14:00:01 +0000 (14:00 +0000)
Doc/whatsnew/2.6.rst

index 6554b434309dd362d297f854d0e41e77d77ff085..e2740207c3810d7d9b7de2c64e529f05a662779e 100644 (file)
@@ -627,9 +627,9 @@ docs), but here's a sample::
         'g' - General format. This prints the number as a fixed-point
               number, unless the number is too large, in which case
               it switches to 'e' exponent notation.
-        'n' - Number. This is the same as 'g', except that it uses the
-              current locale setting to insert the appropriate
-              number separator characters.
+        'n' - Number. This is the same as 'g' (for floats) or 'd' (for
+              integers), except that it uses the current locale setting to
+              insert the appropriate number separator characters.
         '%' - Percentage. Multiplies the number by 100 and displays
               in fixed ('f') format, followed by a percent sign.