Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need a formula interpreter for .Net [closed]

I'm looking for a formula interpreter that I can use in a C# application. It needs to be able to interpret a string like this:

max(1+2, 4) * x

I found Writing a fast formula interpreter (codeproject.com) which almost does what I need but it doesn't allow for functions with multiple parameters. I could probably add that functionality to it but I was just wondering if something like this already exists.

Thanks

like image 439
rob Avatar asked Mar 29 '11 21:03

rob


1 Answers

A couple I've used in the past with no problems:

  • NCalc
  • Fast Lightweight Expression Evaluator
like image 111
Corbin March Avatar answered Sep 21 '22 01:09

Corbin March