cdm/src/main/java/ucar/nc2/util/Misc.java
public static boolean nearlyEqualsAbs(float a, float b, float maxAbsDiff) {
    return absoluteDifference(a, b) <= Math.abs(maxAbsDiff);
  }
public static boolean nearlyEqualsAbs(float a, float b, float maxAbsDiff) {
    return absoluteDifference(a, b) <= Math.abs(maxAbsDiff);
  }
Check if two numbers are nearly equal with given absolute tolerance.

@param a  first number.
@param b  second number.
@param maxAbsDiff  the maximum {@link #absoluteDifference absolute difference} the two numbers may have.
@return true if within tolerance.