Hi,

you have to use

cout << fixed(2) << var;

to display only 2 number after the decimal point

Marc