ceil()

NAME

ceil() - smallest integral value greater than or equal to x

SYNOPSIS

#include <math.h>

double ceil (double x)

DESCRIPTION

The ceil(3) function computes the smallest integral value not less than x.

RETURN VALUES

The ceil(3) function returns a double that is the smallest integral value greater than or equal to x.

ERRORS

The ceil(3) function can fail for the following reasons:

[EDOM]
The argument x is NaN.
[ERANGE]
The result overflows.

SEE ALSO

abs(3)

fabs(3)

floor(3)