예제 #1
0
파일: Var.cs 프로젝트: yosmanyhs/EPPlus-1
        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));
        }
예제 #2
0
        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));
        }