HP C/iX Library Reference Manual (30026-90004)

Chapter 5 121
HP C/iX Library Function Descriptions
ceil
ceil
Computes the ceiling function that finds the smallest integer that is greater than or equal
to the specified real number.
Syntax
#include <math.h>
double ceil (double
x
);
Parameters
x
A real number.
Return Values
n An integer value of type double.
Description
The ceil function returns the smallest integer not less than the argument
x
.
See Also
floor(), fmod(), ANSI C 4.5.6.1, POSIX.1 8.1