+ 1
How round number to the nearest hole number in c++
C++
5 Respuestas
+ 3
Result equal to 1.28815
If you store this value in integer then it will be 1
If you use floor function then the value will be 1
If you use ceil function then the value will be 2
+ 2
double num1 = 46.76;
double num2 = 36.3;
double result;
result = num1 / num2 :
Cout<<"result in nearest hole number";
+ 2
Thanks
+ 1
Can you give me an example?
0
You are welcome Auwal Iliyasu Ishaku