GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — Java Math nextDown() Method - GeeksforGeeks Java Math nextDown() MethodLast Updated : 12 May, 2025 The nextDown() is a built-in Math function in Java that returns the next smaller floating-point number adjacent to the parameter provided in the direction of negative infinity. The nextDown() implementation may run faster than its equivalent nextAfter() call. The nextDown() method is overloaded which means that we have more than one method with the same name under the Math class. Two overloaded methods of the nextDown():
Syntax of nextDown() Method
Special Values:
Examples of Java Math nextDown() MethodExample 1: In this example, we will see how nextDown() method works in Java.
Output Next down of 50.5 (double): 50.49999999999999 Next down of 19.2f (float): 19.199999 Example 2: In this example, we are going to try with special values like NaN, 0.0, and negative infinity.
Output Next down of NaN: NaN Next down of 0.0f: -1.4E-45 Next down of -Infinity: -Infinity Important Points:
Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |