Skip to content

Commit e27f76b

Browse files
authored
gh-142019: Add description about the exponent of result formatted with presentation type 'e' (#142084)
1 parent e12c744 commit e27f76b

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)