code: public static BigDecimal mod(EvaluationContext ctx, Object number, Object divisor) {
          BigDecimal _number = Conversions.toDecimal(number, ctx);
          BigDecimal _divisor = Conversions.toDecimal(divisor, ctx);
          return _number.subtract(_divisor.multiply(new BigDecimal(_int(ctx, _number.divide(_divisor, 10, RoundingMode.HALF_UP)))));
      }
docs: Returns the remainder after number is divided by divisor