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++ 3.0r4 - <b>ceil</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ceil

Usage

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

   ANSI


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>
   #include <stdlib.h>

   int main()
   {
       double x = 5.3,result;
       result = ceil(x);
       printf("The ceil of %f is %f\n",x,result);
       return EXIT_SUCCESS;
   }

Return Value

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

See Also

   floor, fmod



See Also: floor fmod

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