code: public static boolean fEq( float a, float b, float epsilon ) {
          if (isNaN(a) && isNaN(b)) {
              return true;
          }
          float diffAbs = abs(a - b);
          return a == b ? true : diffAbs < epsilon ? true : diffAbs / Math.max(abs(a), abs(b)) < epsilon;
      }
docs: Returns true if two floats are considered equal based on an supplied epsilon.
  
  <p>Note that two {@link Float#NaN} are seen as equal and return true.</p>
  
  @param a float to compare.
  @param b float to compare.
  @return true if two float are considered equal.