Returns the largest integer that is less than or equal to the specified double value.
Input Parameters
val
Integer The value whose floor is to be returned.
Return Value
Integer The largest (closest to positive infinity) floating-point value that less than or equal to the argument and is equal to a mathematical integer.