Java tutorial
public class Main { 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)); } }