almostEqualD function

bool almostEqualD (double a, double b, double maximumAbsoluteError)

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

Implementation

bool almostEqualD(double a, double b, double maximumAbsoluteError) =>
    almostEqualNormD(a, b, a - b, maximumAbsoluteError);