ceil

Calculate the ceiling of a floating point value.

double ceil (double x);

Required Header
<math.h>

Return Value

This function returns a double representing the smallest integer greater or equal to x.

Parameters

x

  The floating point number to convert

Mathematics

See Also    floor, fmod