#include <math.h>float ceilf(float num);double ceil(double num); long double ceill(long double num); 

ceilf( ) and ceill( ) were added by C99.

The ceil( ) family of functions returns the smallest integer (represented as a floating-point value) not less than num. For example, given 1.02, ceil( ) would return 2.0. Given –1.02, ceil( ) would return –1.

Related functions are floor( ) and fmod( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: