almostEqualRelativeD function

bool almostEqualRelativeD (double a, double b, double maximumError)

Compares two doubles and determines if they are equal within the specified maximum error.

Implementation

bool almostEqualRelativeD(double a, double b, double maximumError) =>
    almostEqualNormRelativeD(a, b, a - b, maximumError);