8000 [3.12] gh-131094: Refine `math.isclose` docs (GH-131139) (#131393) · python/cpython@c23a2d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c23a2d3

Browse files
[3.12] gh-131094: Refine math.isclose docs (GH-131139) (#131393)
gh-131094: Refine `math.isclose` docs (GH-131139) (cherry picked from commit 3f50f96) Co-authored-by: Guy Jacoby <49398101+guyjacoby@users.noreply.github.com>
1 parent 304ef84 commit c23a2d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/math.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ Number-theoretic and representation functions
155155

156156
*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be
157157
nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed
158-
as ``abs(x) <= rel_tol * abs(x)``, which is ``False`` for any ``x`` and
159-
rel_tol less than ``1.0``. So add an appropriate positive abs_tol argument
158+
as ``abs(x) <= rel_tol * abs(x)``, which is ``False`` for any nonzero ``x`` and
159+
*rel_tol* less than ``1.0``. So add an appropriate positive *abs_tol* argument
160160
to the call.
161161

162162
The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be

0 commit comments

Comments
 (0)
0