summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-10-06 06:04:33 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-10-06 06:04:33 (GMT)
commitc6ad57608b2581ff14a825f3bcf30a0337ba71e8 (patch)
tree6edb603f06ac26437191ac2b65c839cef79c20a5 /Doc/library
parent1c262a6c7583d8e8cc278e6119dedf43e41c77be (diff)
downloadcpython-c6ad57608b2581ff14a825f3bcf30a0337ba71e8.zip
cpython-c6ad57608b2581ff14a825f3bcf30a0337ba71e8.tar.gz
cpython-c6ad57608b2581ff14a825f3bcf30a0337ba71e8.tar.bz2
Issue #22546: update doc for mini-language float None presentation type.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/string.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index e5bab68..f9da5fa 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. |
+---------+----------------------------------------------------------+