Skip to content

Commit 52adc1a

Browse files
committed
Add details about formatting float with the e/E symbol by __format__.
1 parent 154013a commit 52adc1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/library/string.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,8 @@ The available presentation types for :class:`float` and
547547
| | for :class:`~decimal.Decimal`. If ``p=0``, the decimal |
548548
| | point is omitted unless the ``#`` option is used. |
549549
| | |
550-
| | The number of zeros padding to the exponent is |
551-
| | determined by the implementation. When the coefficient |
552-
| | is zero, the exponent value is also determined by the |
553-
| | implementation. |
550+
| | For :class:`float`, the exponent always contains at |
551+
| | least two digits, and is zero if the value is zero. |
554552
+---------+----------------------------------------------------------+
555553
| ``'E'`` | Scientific notation. Same as ``'e'`` except it uses |
556554
| | an upper case 'E' as the separator character. |

0 commit comments

Comments
 (0)