C Reference function ceil()

Usage of ceil():

double ceil(double x);


There is no range limit on the argument.

Return value:

There is no range limit on the return value.

Source code example of ceil():


		printf ("ceil of 2.5 is %.1lf\n", ceil (2.5));
		return 0;

Output of the ceil example program above:

	ceil of 2.5 is 3.0

This entry was posted in C Reference math.h Functions. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

Comments are closed.