Чтобы установить фиксированные 2 цифры после десятичной точки, сначала используйте следующие:
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);
Затем напечатайте двойные значения.
Это пример:
#include <iostream>
using std::cout;
using std::ios;
using std::endl;
int main(int argc, char *argv[]) {
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);
double d = 10.90;
cout << d << endl;
return 0;
}