After data has been read in from a file, I have to set the balance to have 2 numbers after the decimal. The file was inputted into a stuct.
Here's how the output looks: cout << fixed << setprecision(2) << account.balance;
In output, the prices still read out like $875.6954234564.
Any help is appreciated!