List of usage examples for java.lang StrictMath nextUp
public static float nextUp(float f)
From source file:Main.java
public static void main(String[] args) { float f1 = 12.3f, f2 = 45.6f; System.out.println(StrictMath.nextUp(f1)); System.out.println(StrictMath.nextUp(f2)); }
From source file:Main.java
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)); }