previous | start | next

How to ...: 4

How do you print floats and doubles in fixed decimal format (not scientific notation) and with 2 decimal places?

cout.setf(ios::fixed);
cout.precision(2);
        
     



     


previous | start | next