public static float nextUp (float f)

Returns the floating-point value adjacent to f in the direction of positive infinity. This method is semantically equivalent to nextAfter(f, Float.POSITIVE_INFINITY); however, a nextUp implementation may run faster than its equivalent nextAfter call.

Special Cases:

Parameters:
f    starting floating-point value

Returns:  The adjacent floating-point value closer to positive infinity.

Since:  1.6