A few days ago
joelkratzer

How do I format the amount field in C++. I have 3 decimals and I only want 2.?

How do I format the amount field in C++. I have 3 decimals and I only want 2.?

Top 1 Answers
A few days ago
norcekri

Favorite Answer

Look in your textbook under input/output. That will show you how to format the output for whatever output mode or procedure you’re using. It will have a lot of other good information you’ll need soon enough, too, which is why I recommend you look up the answer. You’ll get a lot more info that way, and avoid another two or three trips back here.
0