expression-evaluator-c-sharp icon indicating copy to clipboard operation
expression-evaluator-c-sharp copied to clipboard

Matheval is a mathematical expressions evaluator library written in C#. Allows to evaluate mathematical, boolean, string and datetime expressions

Results 22 expression-evaluator-c-sharp issues
Sort by recently updated
recently updated
newest added

Interested in using this library as it seems to be very comprehensive. However, it seems to have stopped development - is it still being maintained? For example, the ability to...

Since VALUE uses Convert.ToDecimal it seems logical to use Decimal.TryParse instead of a RegEx to check if the string is a number

Exceptions can cause major performance problems when making multiple calculations. In my case some mathematical expressions can have Double.NAN as a parameter and this makes things unusable when multiple exceptions...

These are passed as optional parameters. So the Rand function has 4 versions: - RAND() - RAND(object seed) - RAND(int min, int max) - RAND(object seed, int min, int max)...

I found it peculiar that a C# library didn't have bitwise arithmetics. I downloaded the project to see if it could be added, just to find out it's already implemented....

The RemainderOperator does not handle negative numbers the same way as the .net remainder operator. These test fail. ``` Expression expr4 = new Expression("5%-4"); Assert.AreEqual(1M, expr4.Eval()); Expression expr5 = new...

Adds Parser.RegisterFunction and Test to allow additional custom functions to be added to the Expression parser engine. This closes proposed enhancement issue #7

Hi @matheval, it looks like the ISNUMBER(value) function returns true only when the text is a number with a decimal separator. The regex used to check the value is ```/^-?\d*(\.\d+)+$/```...

Added date functions as outlined in https://matheval.org/math-expression-eval-for-c-sharp/

Replaced some Regex with constant expressions for performance improvement.