docs: public static int getInheritedScale(AbstractCalculator calc, Num value) {
          if (value.getScale() == null) {
              if (calc != null && calc.getScale() != null)
                  return calc.getScale();
              else
                  return Properties.DEFAULT_SCALE;
          }
          else
              return value.getScale();
      }