]> granicus.if.org Git - python/commitdiff
Documentation for Issue #5920.
authorEric Smith <eric@trueblade.com>
Tue, 5 May 2009 16:42:58 +0000 (16:42 +0000)
committerEric Smith <eric@trueblade.com>
Tue, 5 May 2009 16:42:58 +0000 (16:42 +0000)
Doc/library/string.rst

index 52bd8f19e9665d1bf760e253a7b06bd9ba962602..0eb1b57ba6311b20508291dd4c602e5195bff051 100644 (file)
@@ -434,7 +434,10 @@ The available presentation types for floating point and decimal values are:
    | ``'%'`` | Percentage. Multiplies the number by 100 and displays    |
    |         | in fixed (``'f'``) format, followed by a percent sign.   |
    +---------+----------------------------------------------------------+
-   | None    | The same as ``'g'``.                                     |
+   | None    | Similar to ``'g'``, except with at least one decimal     |
+   |         | point and a default precision of 12. This is intended to |
+   |         | match :func:`str`, except you can add the other          |
+   |         | format modifiers.                                        |
    +---------+----------------------------------------------------------+