Exemplo n.º 1
0
        public decimal Calculate(string str)
        {
            ShuntingYard     sy  = new ShuntingYard();
            PostFixEvaluator pfe = new PostFixEvaluator();

            return(Math.Round(pfe.Evaluate(sy.InfixToPostfix(str)), 2));
        }