![]() |
VOOZH | about |
public static double nextUp(double num)Parameters: The method accepts one parameter num of double type which is the starting floating point value. Return Value: The method returns the adjacent floating-point value closer to positive infinity. It has three special cases:
Input: num = 25.18700000 Output: 25.187000000000005Below program illustrates the Java.lang.StrictMath.nextUp() Method:
The Next upper value is : 67.12300000000002 The Next upper value is : 21.120000000000005 The Next upper value is : 4.9E-324
public static float nextUp(float num)Parameters: The method accepts one parameter num of float type which is the starting floating point value. Return Value: The method returns the adjacent floating-point value closer to positive infinity. It has three special cases:
Input: num = 15.78f Output: 15.780000686645508Below program illustrates the Java.lang.StrictMath.nextUp() Method:
The Next upper value is : 73.7280044555664 The Next upper value is : 51.71000289916992 The Next upper value is : 1.401298464324817E-45