示例#1
0
 /// <summary>
 /// 计算四则表达式的结果
 /// </summary>
 /// <param name="exp"></param>
 /// <returns></returns>
 public static double FourSpecies(string exp)
 {
     MathExpression expression = new MathExpression(exp);
     return expression.Compute();
 }
示例#2
0
        /// <summary>
        /// 计算四则表达式的结果
        /// </summary>
        /// <param name="exp"></param>
        /// <returns></returns>
        public static double FourSpecies(string exp)
        {
            MathExpression expression = new MathExpression(exp);

            return(expression.Compute());
        }