]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #17728: Specify default precision for float.format for presentation types e...
authorEric V. Smith <eric@trueblade.com>
Mon, 15 Apr 2013 13:51:54 +0000 (09:51 -0400)
committerEric V. Smith <eric@trueblade.com>
Mon, 15 Apr 2013 13:51:54 +0000 (09:51 -0400)
Doc/library/string.rst

index b2717a026ea326dd7fff169bed743eb68b103e80..8dabbf3c369588150b9dd44906e56d44740ce69b 100644 (file)
@@ -453,12 +453,13 @@ The available presentation types for floating point and decimal values are:
    +=========+==========================================================+
    | ``'e'`` | Exponent notation. Prints the number in scientific       |
    |         | notation using the letter 'e' to indicate the exponent.  |
+   |         | The default precision is ``6``.                          |
    +---------+----------------------------------------------------------+
    | ``'E'`` | Exponent notation. Same as ``'e'`` except it uses an     |
    |         | upper case 'E' as the separator character.               |
    +---------+----------------------------------------------------------+
    | ``'f'`` | Fixed point. Displays the number as a fixed-point        |
-   |         | number.                                                  |
+   |         | number.  The default precision is ``6``.                 |
    +---------+----------------------------------------------------------+
    | ``'F'`` | Fixed point. Same as ``'f'``.                            |
    +---------+----------------------------------------------------------+
@@ -484,7 +485,7 @@ The available presentation types for floating point and decimal values are:
    |         | the precision.                                           |
    |         |                                                          |
    |         | A precision of ``0`` is treated as equivalent to a       |
-   |         | precision of ``1``.                                      |
+   |         | precision of ``1``.  The default precision is ``6``.     |
    +---------+----------------------------------------------------------+
    | ``'G'`` | General format. Same as ``'g'`` except switches to       |
    |         | ``'E'`` if the number gets too large. The                |