ceil, ceilf
Visual Studio 2008
Calculates the ceiling of a value.
double ceil( double x ); float ceil( float x ); // C++ only long double ceil( long double x ); // C++ only float ceilf( float x );
The ceil function returns a double value representing the smallest integer that is greater than or equal to x. There is no error return.
|
Input |
SEH Exception |
Matherr Exception |
|---|---|---|
|
± QNAN,IND |
none |
_DOMAIN |
ceil has an implementation that uses Streaming SIMD Extensions 2 (SSE2). See _set_SSE2_enable for information and restrictions on using the SSE2 implementation.
|
Routine |
Required header |
|---|---|
|
ceil , ceilf |
<math.h> |
For additional compatibility information, see Compatibility in the Introduction.