ceil
From cppreference.com
Defined in header <math.h>
|
||
float ceilf( float arg ); |
(since C99) | |
double ceil( double arg ); |
||
long double ceill( long double arg ); |
(since C99) | |
Computes nearest integer not less than arg.
Contents |
[edit] Parameters
arg | - | floating point value |
[edit] Return value
Nearest integer not less than arg
[edit] Notes
The integer value can be always represented by the given floating point type.
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
nearest integer not greater than the given value (function) | |
(C99) |
nearest integer not greater in magnitude than the given value (function) |
(C99) (C99) (C99) |
nearest integer, rounding away from zero in halfway cases (function) |
C++ documentation for ceil
|