Class to round doubles and floats to specified number of decimal places.