Skip to content

approxEquals with relative tolerance #214

Open
@nightscape

Description

@nightscape

In many cases, relative tolerances for approximate comparisons are more useful than absolute ones.
If e.g. my DataFrame contains some numbers in the range of 1.0E10 and some in 1.0E-10 I would have to set a high absolute tolerance which would miss differences in the small numbers.

If that is OK, I would create a PR that either adds a second relativeTol parameter with default value, which gets only used if tol == 0.0 or create a different set of methods altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions