Skip to content

Commit

Permalink
Update Doc/library/string.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Bénédikt Tran <[email protected]>
  • Loading branch information
skirpichev and picnixz authored Sep 27, 2024
1 parent 6801e73 commit 0ec4b9b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Doc/library/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,9 @@ The available presentation types for :class:`float` and
+---------+----------------------------------------------------------+

The result should be correctly rounded to a given precision ``p`` of digits
after the decimal point. For :class:`float`, used rounding mode match the one
for :func:`round` builtin, i.e. it should round results midway between
representable values toward the nearest value with an even (0) least
significant bit. For :class:`~decimal.Decimal`, rounding mode of the current
:ref:`context <decimal-context>` is used.
after the decimal point. The rounding mode for :class:`float` matches that
of the :func:`round` builtin. For :class:`~decimal.Decimal`, the rounding
mode of the current :ref:`context <decimal-context>` will be used.


.. _formatexamples:
Expand Down

0 comments on commit 0ec4b9b

Please sign in to comment.