summaryrefslogtreecommitdiffstats
path: root/Doc
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
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')
-rw-r--r--Doc/library/stdtypes.rst4
-rw-r--r--Doc/library/string.rst7
2 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index e857154..3c0aa18 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1296,9 +1296,9 @@ The conversion types are:
+------------+-----------------------------------------------------+-------+
| ``'E'`` | Floating point exponential format (uppercase). | \(3) |
+------------+-----------------------------------------------------+-------+
-| ``'f'`` | Floating point decimal format. | \(3) |
+| ``'f'`` | Floating point decimal format (lowercase). | \(3) |
+------------+-----------------------------------------------------+-------+
-| ``'F'`` | Floating point decimal format. | \(3) |
+| ``'F'`` | Floating point decimal format (uppercase). | \(3) |
+------------+-----------------------------------------------------+-------+
| ``'g'`` | Floating point format. Uses lowercase exponential | \(4) |
| | format if exponent is less than -4 or not less than | |
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 |