C++ Programming/Code/Standard C Library/Functions/ceil
< C++ Programming < Code < Standard C Library < Functionsceil
Syntax |
#include <cmath>
double ceil( double num );
|
The ceil() function returns the smallest integer no less than num. For example:
y = 6.04;
x = ceil( y );
would set x to 7.0.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.