Skip to content

Commit 5bd413f

Browse files
[3.14] gh-142019: Add description about the exponent of result formatted with presentation type 'e' (GH-142084) (#142813)
Co-authored-by: 1nftf <[email protected]>
1 parent 6545f24 commit 5bd413f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/string.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ The available presentation types for :class:`float` and
546546
| | :class:`float`, and shows all coefficient digits |
547547
| | for :class:`~decimal.Decimal`. If ``p=0``, the decimal |
548548
| | point is omitted unless the ``#`` option is used. |
549+
| | |
550+
| | For :class:`float`, the exponent always contains at |
551+
| | least two digits, and is zero if the value is zero. |
549552
+---------+----------------------------------------------------------+
550553
| ``'E'`` | Scientific notation. Same as ``'e'`` except it uses |
551554
| | an upper case 'E' as the separator character. |

0 commit comments

Comments
 (0)