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