java.lang.Math ceil(double a)
This java tutorial shows how to use the ceil(double a) method of Math class under java.lang package. This method returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.
Method Syntax :
public static double ceil(double a)