public static double nextUp (double d)

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

Special Cases:

Parameters:
d    starting floating-point value

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

Since:  1.6