private static float nextUp(float val) {
    // Math.nextUp returns MIN_VALUE for -0.0f. This is suitable for relations
    // (see fromRelation) but not suitable for inverted range boundary
    if (Float.compare(val, -0.0f) == 0) {
      return 0.0f;
    }
    return Math.nextUp(val);
  }
private static float nextUp(float val)