summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-06 17:11:42 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-06 17:11:42 (GMT)
commit58200228624bc2cfc67f5da58b6524516f726265 (patch)
treef5c02f0e1485987721fb3ff3e80a54eb27d95c3f
parentc8a0d2f368401adefcf39c672c74e2cfee1c32b0 (diff)
downloadcpython-58200228624bc2cfc67f5da58b6524516f726265.zip
cpython-58200228624bc2cfc67f5da58b6524516f726265.tar.gz
cpython-58200228624bc2cfc67f5da58b6524516f726265.tar.bz2
#2773: fix description of 'g' and 'G' formatting spec.
-rw-r--r--Doc/library/stdtypes.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index b1702c3..8f3ae39 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1212,13 +1212,13 @@ The conversion types are:
+------------+-----------------------------------------------------+-------+
| ``'F'`` | Floating point decimal format. | \(3) |
+------------+-----------------------------------------------------+-------+
-| ``'g'`` | Floating point format. Uses exponential format if | \(4) |
-| | exponent is greater than -4 or less than precision, | |
-| | decimal format otherwise. | |
+| ``'g'`` | Floating point format. Uses lowercase exponential | \(4) |
+| | format if exponent is less than -4 or greater than | |
+| | precision, decimal format otherwise. | |
+------------+-----------------------------------------------------+-------+
-| ``'G'`` | Floating point format. Uses exponential format if | \(4) |
-| | exponent is greater than -4 or less than precision, | |
-| | decimal format otherwise. | |
+| ``'G'`` | Floating point format. Uses uppercase exponential | \(4) |
+| | format if exponent is less than -4 or greater than | |
+| | precision, decimal format otherwise. | |
+------------+-----------------------------------------------------+-------+
| ``'c'`` | Single character (accepts integer or single | |
| | character string). | |