You are on page 1of 1

12/12/2018 How to use setprecision in C++ - Stack Overflow

cout << fixed << showpoint;


cout << setprecision(2);
cout << num1 << endl;

https://stackoverflow.com/questions/22515592/how-to-use-setprecision-in-c 1/1

You might also like