floor() is a scalar arithmetic function that evaluates its argument and returns the largest integer that is less than or equal to its argument.
Signature
floor(double exp)
- double exp : expression returning
double
Returns
int
Example
Find the largest integer that is less than or equal to 5.9.
floor(5.9)