public static double floor (double a)

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. Special cases:

Parameters:
a    a value.

Returns:  the largest (closest to positive infinity) floating-point value that less than or equal to the argument and is equal to a mathematical integer.