Skip to content

Improve docs of math.isclose(0, x) when x = 0 #131094

@guyj-s1

Description

@guyj-s1

Documentation

In the documentation of math.isclose it states

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.

The statement isn't correct since x = 0 will give True

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions