|
|
#include <math.h>float ceilf(float num);double ceil(double num); long double ceill(long double num);
ceilf( ) and ceill( ) were added by C99.
The ceil( ) family of functions returns the smallest integer (represented as a floating-point value) not less than num. For example, given 1.02, ceil( ) would return 2.0. Given –1.02, ceil( ) would return –1.
Related functions are floor( ) and fmod( ).
|
|