public override CompileResult Execute(IEnumerable <FunctionArgument> arguments, ParsingContext context) { ValidateArguments(arguments, 1); var args = ArgsToDoubleEnumerable(IgnoreHiddenValues, false, arguments, context); return(new CompileResult(VarMethods.Var(args), DataType.Decimal)); }
public override CompileResult Execute(IEnumerable <FunctionArgument> arguments, ParsingContext context) { if (!arguments.Any() || arguments.Count() < 2) { return(CreateResult(eErrorType.Div0)); } var values = _argConverter.ConvertArgsIncludingOtherTypes(arguments, false); var result = VarMethods.VarP(values); return(CreateResult(result, DataType.Decimal)); }