OpenBSD manual page server

Manual Page Search Parameters

CEIL(3) Library Functions Manual CEIL(3)

ceil, ceilf, ceillround to smallest integral value greater than or equal to x

#include <math.h>

double
ceil(double x);

float
ceilf(float x);

long double
ceill(long double x);

The () function returns the smallest integral value greater than or equal to x. The () function is a single precision version of ceil(). The () function is an extended precision version of ceil().

abs(3), fabs(3), floor(3), nextafter(3), rint(3)

The ceil() function conforms to ANSI X3.159-1989 (“ANSI C89”).

August 14, 2013 OpenBSD-current