summaryrefslogtreecommitdiffstats
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-07-17 17:48:39 (GMT)
committerEric Smith <eric@trueblade.com>2008-07-17 17:48:39 (GMT)
commit454816d8bdd6ec9bb986aa31760518e622dc1ea7 (patch)
tree3ee9ce763f7c0545f625b9de580ca98722cb7080 /Doc/library/string.rst
parent4347c44f1834887602402b7eec0e82214bd6bd1d (diff)
downloadcpython-454816d8bdd6ec9bb986aa31760518e622dc1ea7.zip
cpython-454816d8bdd6ec9bb986aa31760518e622dc1ea7.tar.gz
cpython-454816d8bdd6ec9bb986aa31760518e622dc1ea7.tar.bz2
Issue 3382: Make '%F' and float.__format__('F') convert results to upper case.
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 0e345e3..cb9cf93 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -429,13 +429,14 @@ 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. |
+---------+----------------------------------------------------------+
- | ``'E'`` | Exponent notation. Same as ``'e'`` except it uses an |
- | | upper case 'E' as the separator character. |
+ | ``'E'`` | Exponent notation. Same as ``'e'`` except it converts |
+ | | the number to upper case. |
+---------+----------------------------------------------------------+
| ``'f'`` | Fixed point. Displays the number as a fixed-point |
| | number. |
+---------+----------------------------------------------------------+
- | ``'F'`` | Fixed point. Same as ``'f'``. |
+ | ``'F'`` | Fixed point. Same as ``'f'`` except it converts the |
+ | | number to upper case. |
+---------+----------------------------------------------------------+
| ``'g'`` | General format. This prints the number as a fixed-point |
| | number, unless the number is too large, in which case |