Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - ceil http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   ceil

   Usage
   #include <math.h>
   double ceil(double x);

   Description
   ceil returns a double value representing the smallest integer that  is
   greater than or equal to x.

   Example
   #include <math.h>
   #include <stdio.h>
   main()
   {
   double x = 5.3,result;
        result = ceil(x);
        printf("The ceil of %f is %f\n",x,result);
   }

   Return Value
   Returns the double value of the smallest integer not less than x.


See Also: floor fmod

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson