Advertisement
congdantoancau

Set precision

Dec 30th, 2017
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.06 KB | None | 0 0
  1. cout.imbue(locale(""));
  2. cout << fixed;
  3. cout << setprecision(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement