(original) (raw)
changeset: 83392:725d6347ac7e branch: 2.7 parent: 83381:bbb3aa45b4ea user: Eric V. Smith eric@trueblade.com date: Mon Apr 15 09:51:54 2013 -0400 files: Doc/library/string.rst description: Issue #17728: Specify default precision for float.format for presentation types e, f, and g. diff -r bbb3aa45b4ea -r 725d6347ac7e Doc/library/string.rst --- a/Doc/library/string.rst Sun Apr 14 13:08:50 2013 -0400 +++ b/Doc/library/string.rst Mon Apr 15 09:51:54 2013 -0400 @@ -453,12 +453,13 @@ +=========+==========================================================+ | ``'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 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 | /eric@trueblade.com