需要一个公式跨preTER对于.NET [英] Need a formula interpreter for .Net

查看:191
本文介绍了需要一个公式跨preTER对于.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个公式间preTER,我可以在C#应用程序中使用。它需要能够除$ P $角这样的字符串:

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

我发现写一个快速的公式除preTER (codeproject.com)几乎做什么,我需要,但它不允许用于多参数的函数。我该功能可能添加到它,但我只是想知道,如果这样的事情已经存在。

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.

感谢

推荐答案

一对夫妇,我使用过,没有问题:

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

  • NCalc
  • Fast Lightweight Expression Evaluator

这篇关于需要一个公式跨preTER对于.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆