Math expression evaluator library for C# .NET and Salesforce Apex

This is a handy expression evaluator for C# and salesforce apex, that allows to evaluate mathematical, boolean, string and datetime expressions.

Key Features:

  • Uses Decimal for calculation and result
  • No dependencies to external libraries
  • Precision and rounding mode can be set
  • Supports variables
  • Standard boolean and mathematical operators
  • Standard basic mathematical and boolean functions
  • Custom functions and operators can be added at runtime
  • Functions can be defined with a variable number of arguments (see MIN and MAX functions)
  • Supports for scientific notations of numbers
  • Supports string literals in functions