0

How to get out put in c++ like 2.34 decimal 2 points ?I need code

12th Jul 2019, 3:01 AM
EMEEJOR
EMEEJOR - avatar
2 Answers
+ 4
https://code.sololearn.com/c2AdoqF021y2/?ref=app using setprecision() notice that the value is 4 change it to 2 and it'll round decimals
12th Jul 2019, 3:22 AM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 2
std::fixed std::setprecision(2)
12th Jul 2019, 3:15 AM
Payton Zhong
Payton Zhong - avatar