7.12.9.1 The ceil functions

Synopsis

1

#include <math.h>
double ceil(double x);
float ceilf(float x);
long double ceill(long double x);

Description

2

The ceil functions compute the smallest integer value not less than x.

Returns

3

The ceil functions return ⌈x⌉, expressed as a floating-point number.