public static float nextAfter (float start, double direction)

Returns the floating-point number adjacent to the first argument in the direction of the second argument. If both arguments compare as equal a value equivalent to the second argument is returned.

Special cases:

Parameters:
start    starting floating-point value
direction    value indicating which of start's neighbors or start should be returned

Returns:  The floating-point number adjacent to start in the direction of direction.

Since:  1.6