(slope is a declared variable)
I'm using:
cout.setf(ios::showpoint | ios::fixed);
cout << setprecision(2) << slope << endl;
to set the decimal places to 2 places. How do I end this command so that the next number I use will NOT be limited to two decimal places?
Thanks.
I'm using:
cout.setf(ios::showpoint | ios::fixed);
cout << setprecision(2) << slope << endl;
to set the decimal places to 2 places. How do I end this command so that the next number I use will NOT be limited to two decimal places?
Thanks.