Here you can find the source of ceil(double Var1)
public static int ceil(double Var1)
//package com.java2s; /**// ww w . j ava 2s . co m * Dalthow * * * @Author Trevi Awater * @License Creative Commons 4 * **/ public class Main { public static int ceil(double Var1) { return (int) (Var1 + 0.9999D); } }