ceil, ceill
raw OCR
Rounds up.
Defined in header <math.h>
Syntax
#include <math.h>
double ceiKdouble x);
long double ceilKlong double x);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only | |
|---|---|---|---|---|---|
| ceil | ■ | ■ | ■ | ■ | |
| ceill | ■ | ■ |
Remarks
ceil finds the smallest integer not less than x. ceill is the long double version; it takes a long double argument and returns a long double result.
Return value
These functions return the integer found as a double (cell) or a long double (ceill).
See also
floorfmodiinclude<math.h>iinclude<stdio.h>intmain{doubledownupnumber=123.54;down=floor;up=ceil;printf;printf;printf;return0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/math.h/ceil/
· short form /3.1/ceil/