02# Using ceil and floor Functions | Advance C Programming | C Programming Language Tutorial

preview_player
Показать описание
#Working with Mathematical Functions

C Language:
ceil function in c (Ceiling)
In the C Programming Language, the ceil function returns the smallest integer that is greater than or equal to x (ie: rounds up the nearest integer).

Syntax
The syntax for the ceil function in the C Language is:
double ceil(double x);

C Language: floor function
(Floor)
In the C Programming Language, the floor function returns the largest integer that is smaller than or equal to x (ie: rounds downs the nearest integer).

Syntax
The syntax for the floor function in the C Language is:
double floor(double x);
Рекомендации по теме
visit shbcf.ru