summaryrefslogtreecommitdiffstats
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-05-06 13:08:15 (GMT)
committerEric Smith <eric@trueblade.com>2009-05-06 13:08:15 (GMT)
commit741191f17a921191355c1a67ca9f7fda08c3ae57 (patch)
tree2ead9e0086ce417631365543e133a789d9f75eeb /Doc/library/string.rst
parent5776c1623c1d14b8624547db5755fec8d60fc8ed (diff)
downloadcpython-741191f17a921191355c1a67ca9f7fda08c3ae57.zip
cpython-741191f17a921191355c1a67ca9f7fda08c3ae57.tar.gz
cpython-741191f17a921191355c1a67ca9f7fda08c3ae57.tar.bz2
Issue #3382. float 'F' formatting no longer maps to 'f'. This only affects nan and inf.
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index d104931..959ea99 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -415,7 +415,8 @@ The available presentation types for floating point and decimal values are:
| ``'f'`` | Fixed point. Displays the number as a fixed-point |
| | number. |
+---------+----------------------------------------------------------+
- | ``'F'`` | Fixed point. Same as ``'f'``. |
+ | ``'F'`` | Fixed point. Same as ``'f'``, but converts ``nan`` to |
+ | | ``NAN`` and ``inf`` to ``INF``. |
+---------+----------------------------------------------------------+
| ``'g'`` | General format. This prints the number as a fixed-point |
| | number, unless the number is too large, in which case |