https://github.com/python/cpython/commit/ce1abaf9b83f8535749c6d3d0a0fabf15d87079f commit: ce1abaf9b83f8535749c6d3d0a0fabf15d87079f branch: main author: Sergey B Kirpichev <[email protected]> committer: vstinner <[email protected]> date: 2026-03-11T14:25:24+01:00 summary:
gh-99875: Document rounding mode for old-style formatting (#126382) files: M Doc/library/stdtypes.rst diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a70bda47da6f43..6b55daa9b6eae0 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -3202,6 +3202,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]
