https://github.com/python/cpython/commit/c23a2d3bdc6e03e5f986d289a7d265392d1bcaaf commit: c23a2d3bdc6e03e5f986d289a7d265392d1bcaaf branch: 3.12 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: picnixz <10796600+picn...@users.noreply.github.com> date: 2025-03-18T09:20:52Z summary:
[3.12] gh-131094: Refine `math.isclose` docs (GH-131139) (#131393) gh-131094: Refine `math.isclose` docs (GH-131139) (cherry picked from commit 3f50f96586d46497e4d9de065c4424fe2d72508e) Co-authored-by: Guy Jacoby <49398101+guyjac...@users.noreply.github.com> files: M Doc/library/math.rst diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 0648293bfa7b89..1fb440ebb561c4 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -155,8 +155,8 @@ Number-theoretic and representation 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 _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com