0
Can anyone tell me how to use ceil in c++ ?? And what is cmath?
2 odpowiedzi
+ 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;
+ 1
Thank you very much 😌😁