Currently At: Programming Reference > C Reference > Standard C Math > ceil()

ceil()


Syntax:
#include <math.h>
double ceil( double num );


Description:
The ceil() function returns the smallest integer no less than num.

Example:
y = 6.04;
x = ceil( y );

RESULT: Sets x to 7.0


Related Topics:
floor(), fmod()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions