I'm trying to make a loan calculation program for my class and I'm having trouble with getting my output to have ONLY two decimal places. I'm getting really weird output the way this is set up.
Can someone take a look at my code and tell me what I'm doing wrong?
By default setprecision sets number of significant digits to display. To set amount of digits after decimal point, you need to print value in fixed format, not scientific. Pass std::fixed to stream