0

Can anyone tell me how to use ceil in c++ ?? And what is cmath?

3rd Jul 2021, 11:16 AM
SATYAM SHARMA
2 Answers
+ 4
cmath is a library of c++ You have to include it in your code to use its functions ceil() is a function of cmath libraray . It returns the nearest higher value For example: Ceil of 10.25 = 11 There is a floor function too which will return lower value. floor(10.25)=10; ceil(10.25)=11;
3rd Jul 2021, 11:24 AM
HK Lite
HK Lite - avatar
+ 1
Thank you very much 😌😁
3rd Jul 2021, 11:30 AM
SATYAM SHARMA