Java tutorial
public class Main { public static void main(String[] args) { double d1 = 1.2, d2 = 3.4, d3 = 6.5; System.out.println("Ceil value of " + d1 + " = " + StrictMath.ceil(d1)); System.out.println("Ceil value of " + d2 + " = " + StrictMath.ceil(d2)); System.out.println("Ceil value of " + d3 + " = " + StrictMath.ceil(d3)); } }