calculate desired precision and scale depending on the operator, scales and precisions on the operands.