mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
#2773: fix description of 'g' and 'G' formatting spec.
This commit is contained in:
parent
c8a0d2f368
commit
5820022862
1 changed files with 6 additions and 6 deletions
|
|
@ -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). | |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue