maximumMatchingFloatingPointNumber function

double maximumMatchingFloatingPointNumber (double value, int maxNumbersBetween)

Returns the floating point number that will match the value with the tolerance on the maximum size (i.e. the result is always bigger than the value)

Implementation

double maximumMatchingFloatingPointNumber(
        double value, int maxNumbersBetween) =>
    rangeOfMatchingFloatingPointNumbers(value, maxNumbersBetween).item2;