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