nextDown

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

Special Cases:

  • If the argument is NaN, the result is NaN.

  • If the argument is negative infinity, the result is negative infinity.

  • If the argument is zero, the result is -Float.MIN_VALUE

Return

The adjacent floating-point value closer to negative infinity.

Since

1.8

Parameters

f

starting floating-point value