float (float val) { // Math.nextDown 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.nextDown(val); }