// setf rounding #include #include using namespace std; int main() { double num = 0.0; cout << "Enter number with decimal places: "; cin >> num; cout.setf(ios::fixed); cout.precision(0); cout << "Rounded to the nearest whole number: " << num << endl; cout.setf(ios::fixed); cout.precision(2); cout << "Rounded to the hundredth's place: " << num << endl; system("pause"); return 0; }// end of main