cout << "Setting the precision using" << " setprecision to 9 : " << setprecision(9); // this is the output Setting the precision using setprecision to 9: 3.140000000