Java tutorial
public class Main { public static void main(String[] args) { System.out.println(Math.ceil(10)); System.out.println(Math.ceil(9.1)); System.out.println(Math.ceil(5.5)); System.out.println(Math.ceil(-10)); System.out.println(Math.ceil(-4.4)); System.out.println(Math.ceil(0)); } } /* 10.0 10.0 6.0 -10.0 -4.0 0.0 */