Return a value equal to x (rounded), having the exponent of y.
decimal/Context.quantize
Context.quantize