Joh*_*Woo 12
你可以用NCalc它.它还接受x,y,z等参数...
Dim e As Expression = new Expression("2 + 3 * 5")
Msgbox(17 = e.Evaluate())
Run Code Online (Sandbox Code Playgroud)
小智 10
Dim equation As String = "2+6/2"
Dim result = New DataTable().Compute(equation, Nothing)
Run Code Online (Sandbox Code Playgroud)