From f688a4bafd94a1b84eea4d9742dae949ff2c959b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:31:44 +0100 Subject: [PATCH] [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 --- Doc/library/stdtypes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 78977e917da0..ac856152e41a 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) -- 2.47.3