Java Math.nextDown() methodThe java.lang.Math.nextDown() is a built-in math method in java. It returns the floating-point value adjacent to the user specified parameter (d) in the direction of negative infinity. This method is equivalent to nextAfter(d, Double.NEGATIVE_INFINITY) method. Implementation of nextDown may run faster than its equivalent nextAfter call. SyntaxParameterReturn
Example 1Test it NowOutput: NaN Example 2Test it NowOutput: 744.9299999999998 Example 3Test it NowOutput: 328.69998 Example 4Test it NowOutput: -1.4E-45 Example 5Test it NowOutput: -4.9E-324 Example 6Test it NowOutput: -Infinity Next TopicJava Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India