Here you can find the source of ceilPositive(float x)
static public int ceilPositive(float x)
//package com.java2s; //License from project: Apache License public class Main { static private final double CEIL = 0.9999999; /**// ww w . j a v a 2 s .c o m * Returns the smallest integer greater than or equal to the specified * float. This method will only properly ceil floats that are positive. */ static public int ceilPositive(float x) { return (int) (x + CEIL); } }