floor

Finds the largest integer not greater than x (base function)

double floor (
        double x
)

Arguments

x Argument

Return value

The largest integer (in double-precision floating point format) that is not greater than x is returned.

Explanation

The largest integer less than or equal to x is obtained and its corresponding double-precision floating point value is returned.

See Also

ceil()