floor
Computes the largest integer value that is less than or equal to its
argument.
Syntax
#include <math.h>
double floor (double x);
Parameters
x A real number.
Return Values
n An integer value stored as a double.
Description
The floor function returns the largest integer not greater than x.
See Also
ANSI C 4.5.6.3, POSIX.1 8.1