Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into printf-fmt-docs/142108
  • Loading branch information
skirpichev authored May 23, 2026
commit 5eae2a87f5ecb80f2b809f7978df9f42f4a51086
4 changes: 4 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3224,6 +3224,10 @@ attempt to format values, converted first to built-in :class:`float` (by
``operator.index(obj)`` for ``'o'``, ``'x'``, ``'X'`` or ``'c'`` formats, or by
``int(obj)`` for other integer formats) types.

For floating-point formats, the result should be correctly rounded to a given
precision ``p`` of digits after the decimal point. The rounding mode matches
that of the :func:`round` builtin.

Notes:

(1)
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.