How do you print floats and doubles in fixed decimal format (not scientific notation) and with 2 decimal places?
- set the output default for floats and doubles to be fixed
- set the output default precision to be 2 decimal places
cout.setf(ios::fixed); cout.precision(2);