Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 271 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 271 Bytes

MathExpr

using MathExpr

// ...

// Usage 1
float result = MathExpr.Eval("1 + 3 * (8 + 5)");
// => 40

// Usage 2
string[] exprs = MathExpr.Parse("1 + 3 * (8 + 5)");
// => ["1", "3", "8", "5", "+", "*", "+"]
float result = MathExpr.Eval(exprs);
// => 40