H-ANSEN / StrEvaluate

Dead simple, small, fast expression evaluation in Java.
MIT License
2 stars 0 forks source link

Constants #3

Open H-ANSEN opened 1 year ago

H-ANSEN commented 1 year ago

Support for mathematical constants, both built-in and user defined. Built-in constants should include:

User defined constants could possibly be implemented in some sort of expression builder class or directly into the StrEvaluate class. This would allow users to attach a double value to a string constant:

StrEvaluate evaluator = new StrEvaluate();
evaluator.addConstant("pi", 3.14);