VB “Financial.Pmt” equivalent in C#?

前端 未结 4 1231
深忆病人
深忆病人 2021-01-13 23:30

There is a built in function from the Microsoft.VisualBasic assembly. I can use it in VB like this:

Financial.Pmt((dAPR / 100) / 12, iNumberOfPayments, dLoan         


        
4条回答
  •  一个人的身影
    2021-01-14 00:22

    As already stated you can use the Microsoft.VisualBasic assembly which provides plenty of the VB6 functionality. But to be honest if you are looking more generally at financial calculations you should consider looking at Excel Financial Functions for .NET.

    Update: The library can be installed via NuGet

    PM> Install-Package ExcelFinancialFunctions

提交回复
热议问题