code: public static int compare(float a, float b, float delta) {
          if (equals(a, b, delta)) {
              return 0;
          }
          return Float.compare(a, b);
      }
docs: Compares two float values up to some delta.
  @return The value 0 if a equals b, a value greater than 0 if if a > b, and a value less than 0 if a < b.