almostEqualI function

bool almostEqualI (double a, double b, int decimals)

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

Implementation

bool almostEqualI(double a, double b, int decimals) =>
    almostEqualNormI(a, b, a - b, decimals);