Decimal#quantize() : quantize() is a Decimal class method which returns a value equal to first decimal value (rounded) having the exponent of second decimal value.
Syntax: Decimal.quantize()
Parameter: Decimal values
Return: a value equal to first decimal value (rounded) having the exponent of second decimal value.