Exemple #1
0
        protected override Variant GetValue()
        {
            if (!Params[0].IsNumber())
            {
                throw new NamedException(Translator.TranslateStr(438), "CompareValue");
            }
            if (!Params[1].IsNumber())
            {
                throw new NamedException(Translator.TranslateStr(438), "CompareValue");
            }
            if (!Params[2].IsNumber())
            {
                throw new NamedException(Translator.TranslateStr(438), "CompareValue");
            }
            Variant aresult = new Variant();

            aresult = DoubleUtil.CompareValue(Params[0], Params[1], Params[2]);
            return(aresult);
        }