]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131094: Refine `math.isclose` docs (#131139)
authorGuy Jacoby <49398101+guyjacoby@users.noreply.github.com>
Tue, 18 Mar 2025 09:13:26 +0000 (02:13 -0700)
committerGitHub <noreply@github.com>
Tue, 18 Mar 2025 09:13:26 +0000 (10:13 +0100)
Doc/library/math.rst

index c78b313db5152dad8141c53fb848a3dcaee37d9c..0749367045dfa9e91b778459773d9f98b6c9e8fc 100644 (file)
@@ -350,8 +350,8 @@ Floating point manipulation functions
 
    *abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be
    nonnegative.  When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed
-   as ``abs(x) <= rel_tol  * abs(x)``, which is ``False`` for any ``x`` and
-   rel_tol less than ``1.0``.  So add an appropriate positive abs_tol argument
+   as ``abs(x) <= rel_tol  * abs(x)``, which is ``False`` for any nonzero ``x`` and
+   *rel_tol* less than ``1.0``.  So add an appropriate positive *abs_tol* argument
    to the call.
 
    The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be