code: public static BigDecimal min(EvaluationContext ctx, Object... args) {
          if (args.length == 0) {
              throw new RuntimeException("Wrong number of arguments");
          }
  
          BigDecimal result = null;
          for (Object arg : args) {
              BigDecimal _arg = Conversions.toDecimal(arg, ctx);
              result = result != null ? _arg.min(result) : _arg;
          }
          return result;
      }
docs: Returns the minimum of all arguments