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
Question about setprecision
Question about setprecision
Sep 21, 2012 at 4:15pm UTC
aarodenas
(1)
Say I had a number like 22.4, is there a way to use setprecision to make it display 22.40? How do I add zeros to the end of the number, I guess, is a better question to ask.
Sep 21, 2012 at 4:54pm UTC
freddy92
(274)
http://www.cplusplus.com/reference/iostream/manipulators/setprecision/
Please try googling your problem first next time. C++ has many formatting tools that you can look up and learn about.
Topic archived. No new replies allowed.