decimal.Decimal.quantize

Decimal.quantize(exp, rounding=None, context=None, watchexp=True)[source]

Quantize self so its exponent is the same as that of exp.

Similar to self._rescale(exp._exp) but with error checking.