diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-06 02:04:33 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-06 02:04:33 -0400 |
commit | 7a4d8602004023f49a30f26dc83c02e2e70eaca7 (patch) | |
tree | 210e522bed13b65664ff66dea36892c03a2f5147 /Doc/library/string.rst | |
parent | 22eab1b84ee3cbfad14849176f2daaa75dea31e2 (diff) | |
download | cpython-7a4d8602004023f49a30f26dc83c02e2e70eaca7.tar.gz |
Issue #22546: update doc for mini-language float None presentation type.
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r-- | Doc/library/string.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index e5bab684df..f9da5fa7ad 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -478,10 +478,12 @@ 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 | Similar to ``'g'``, except with at least one digit past | - | | the decimal point and a default precision of 12. This is | - | | intended to match :func:`str`, except you can add the | - | | other format modifiers. | + | None | Similar to ``'g'``, except that fixed-point notation, | + | | when used, has at least one digit past the decimal point.| + | | The default precision is as high as needed to represent | + | | the particular value. The overall effect is to match the | + | | output of :func:`str` as altered by the other format | + | | modifiers. | +---------+----------------------------------------------------------+ |