123456
a=1.5555; cout << "a = " << fixed << a << setprecision(2) << endl; b=2; cout << "b = " << fixed << b << setprecision(2) << endl; c=a*b; // should c=1.56*2.00 not c=1.5555*2.00 cout << fixed << c << setprecision(2);