我如何在c#中使用Financial.NPV()函数

时间:2013-11-21 21:56:41

标签: c# math finance

我必须使用NPV功能进行财务计算。我做了一些研究,但我对如何将它添加到我的c#项目感到困惑。

人们说; Just add Financial.dll to the references in your project. The functions are provided as static methods on a Financial class in the System.Numerics namespace

我添加了System.Numerics命名空间但我无法达到NPV功能。我在哪里可以找到Financial.dll文件?

由于

1 个答案:

答案 0 :(得分:2)

访问它就像任何其他包含函数的类一样:

double npvResult = Financial.Npv(rate, flows);

(从here拉出来)