cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
content
content
May 24, 2016 at 7:17pm UTC
closed account (
3Cj3AqkS
)
content
Last edited on
May 24, 2016 at 9:24pm UTC
May 24, 2016 at 8:57pm UTC
Duthomhas
(13212)
I always find it amusing when a perfectly good and working answer to the
very same question
from the
very same person
is ignored.
http://www.cplusplus.com/forum/beginner/191573/#msg924317
What, pray tell, can explain willful refusal to even
try
the answer you have (twice now) asked for? Do you actually want to know? Do you actually care?
Or are you just spamming us like so many others?
May 24, 2016 at 9:01pm UTC
Peter87
(11238)
Note that if you always want to show exactly 2 decimal places you should use std::setprecision(2) in combination with std::fixed.
cout << setprecision(2) << fixed;
May 24, 2016 at 9:16pm UTC
closed account (
3Cj3AqkS
)
wow
Last edited on
May 24, 2016 at 9:17pm UTC
Topic archived. No new replies allowed.