Skip to content

Commit

Permalink
gh-99875: document rounding mode for old-style formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Nov 4, 2024
1 parent 081706f commit 245ce7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,10 @@ The conversion types are:
| | character in the result. | |
+------------+-----------------------------------------------------+-------+

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

0 comments on commit 245ce7a

Please sign in to comment.