double ceil (double x);
double ceil (double x); float ceilf (float x);long double ceill (long double x);
double ceil (double x); float ceil (float x);long double ceil (long double x);
double ceil (double x); float ceil (float x);long double ceil (long double x); double ceil (T x); // additional overloads for integral types
<cmath>
) for the integral types: These overloads effectively cast x to a double
before calculations (defined for T being any integral type).
|
|
ceil of 2.3 is 3.0 ceil of 3.8 is 4.0 ceil of -2.3 is -2.0 ceil of -3.8 is -3.0 |