|
|
#include <cmath>float ceil(float num);double ceil(double num); long double ceil(long double num);
The ceil( ) function 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( ).
|
|