StrictMath.nextUp(double d) has the following syntax.
public static double nextUp(double d)
In the following code shows how to use StrictMath.nextUp(double d) method.
/* ww w.ja v a 2s.c o m*/ public class Main { public static void main(String[] args) { double d1 = 12.3400000000000 , d2 = 98.76; System.out.println(StrictMath.nextUp(d1)); System.out.println(StrictMath.nextUp(d2)); } }
The code above generates the following result.