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



我必须使用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文件?

感谢

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

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

(从此处拉出)

最新更新