// Mr. Minich
// CMPSC 201
// Ch. 3 Demo Program #5
// January 30, 2000 
// Purpose - rounds a positive, floating-point value to the hundredth's place.

#include <iostream>
using namespace std;

int main()
{
	double num = 0.0;
	double roundedNum = 0.0;

	cout << "Enter a number with more than 2 decimal places: ";
	cin >> num;

	roundedNum = (int ((num * 100) + 0.5))/ 100.0;

	cout << num << " rounded to the nearest hundredth's is " << roundedNum << endl;	

	return 0;
} //end of main