ceil

Finds the smallest integer not less than x (ceiling function)

double ceil (
        double x
)

Arguments

x Argument

Return value

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

Explanation

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

See Also

floor()