https://github.com/python/cpython/commit/f688a4bafd94a1b84eea4d9742dae949ff2c959b
commit: f688a4bafd94a1b84eea4d9742dae949ff2c959b
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-11T13:31:44Z
summary:

[3.14] gh-99875: Document rounding mode for old-style formatting (GH-126382) 
(#145811)

gh-99875: Document rounding mode for old-style formatting (GH-126382)
(cherry picked from commit ce1abaf9b83f8535749c6d3d0a0fabf15d87079f)

Co-authored-by: Sergey B Kirpichev <[email protected]>

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 78977e917da0b4..ac856152e41a68 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -3190,6 +3190,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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to