Question about setprecision

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.

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.