Here you can find the source of ceil(float value)
public static int ceil(float value)
//package com.java2s; //License from project: Open Source License public class Main { public static int ceil(float value) { int i = (int) value; return value > i ? i + 1 : i; }/* ww w . ja va 2s.c o m*/ public static int ceil(double value) { int i = (int) value; return value > i ? i + 1 : i; } }