AntonovAnton / math.evaluation

This .NET library allows you to evaluate and compile any mathematical expression from a string dynamically at runtime. It supports a wide range of operations and allows for the use of custom variables, operators, and functions. The evaluator can be configured for different contexts, such as scientific, programming, boolean math expressions.
Other
29 stars 1 forks source link

Missing sign in expression #49

Closed Bykiev closed 2 weeks ago

Bykiev commented 2 weeks ago

Describe the bug

Missing sign in expression

To Reproduce

string expr = "-0";
Console.WriteLine(expr.Evaluate(new DotNetStandartMathContext(), CultureInfo.InvariantCulture));

Expected behavior

-0

Actual Behavior

0