Floor()
Appearance
Accepts a numeric value and returns the largest integer less than or equal to the input using the C floor() function. Rounding proceeds downward toward negative infinity.
For example, floor(-3.8) returns -4.
float input = 3.8;
int result = floor(input);
// result = 3