I need to be two decimals precise therefore I am using this code

Code:
outData << setw(10) << set iosflags(ios::fixed) << setprecision(2) << totalGP;
How come this isn't working ?