From: Georg Brandl Date: Tue, 6 May 2008 17:11:42 +0000 (+0000) Subject: #2773: fix description of 'g' and 'G' formatting spec. X-Git-Tag: v2.6a3~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58200228624bc2cfc67f5da58b6524516f726265;p=python #2773: fix description of 'g' and 'G' formatting spec. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index b1702c3b68..8f3ae39714 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). | |