I'm attempting to output a 7 digit number in a space 7 columns wide with cout, where loan is my 7 digit number:
cout << "$" << setw(7) << fixed << showpoint << setprecision(0) << loan;
Any attempts fiddling with this result in the number being converted to 1e+006. I have no problems with smaller numbers in the same place. The loan variable is a double. The columns are set up because the output has to line up with a table.
Any help or further inquiry would be much appreciated.