C – Floor and Ceil

C – Floor and Ceil 2017-07-27T01:25:34+00:00

Floor and Ceil :

floor () :  

floor() function is used to round down the given value.

Syntax :

double floor(double x);

ceil () : 

ceil() function is used to round up the given value.

Syntax :

double ceil(double x);

C – EXAMPLE PROGRAM TO FIND FLOOR AND CEIL VALUES OF GIVEN NUMBER :

 

Prev Next