VB “Financial.Pmt” equivalent in C#?

前端 未结 4 1207
深忆病人
深忆病人 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:29

    You must add a reference to the Microsoft.VisualBasic.dll assembly for your project in Visual Studio. This is not the same thing as the using Microsoft.VisualBasic; directive at the top your source file. You must do both steps.

提交回复
热议问题