Implemented rounding based on Decimal data.