Troubles with setprecision

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?

http://pastebin.com/P7W4veYq
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
Thank you! Problem solved.
Topic archived. No new replies allowed.