mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.12] Update floatingpoint.rst (GH-110509) (#110513)
Update floatingpoint.rst (GH-110509)
This commit removes a ':'. I believe the extra colon causes a display error.
What I believe to be an error:
Above this expression
`round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)`
the page displays `.. doctest::`.
What I observed:
After I remove the extra colon, the page does not display `.. doctest::`
(cherry picked from commit 8e56d551ce
)
Co-authored-by: zipperer <47086307+zipperer@users.noreply.github.com>
This commit is contained in:
parent
481aa7a40f
commit
96e42d2f8d
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ the :func:`math.isclose` function can be useful for comparing inexact values:
|
|||
True
|
||||
|
||||
Alternatively, the :func:`round` function can be used to compare rough
|
||||
approximations::
|
||||
approximations:
|
||||
|
||||
.. doctest::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue