Skip to content

Commit 154013a

Browse files
committed
Add description about the exponent of result formatted with presentation type 'e'.
1 parent cfcd524 commit 154013a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/string.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ 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+
| | 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. |
549554
+---------+----------------------------------------------------------+
550555
| ``'E'`` | Scientific notation. Same as ``'e'`` except it uses |
551556
| | an upper case 'E' as the separator character. |

0 commit comments

Comments
 (0)