本文介绍了如何计算函数的复利的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在函数过程中计算复利
这是我使用的代码,但无法使用:
私有函数CalcInvestBalance(ByRef数量为Double,_
ByRef年为Double,_
ByRef率为Double)作为Double

昏暗的平衡为Double
余额=金额*(1 +费率)^年
退货余额
结束函数

Hw do I calculate compound interest in a function procedure
This is the code that I used but it doesn''t work:
Private FunctionCalcInvestBalance(ByRef amount As Double, _
ByRef years As Double, _
ByRef rate As Double) As Double

Dim balance As Double
Balance = amount * (1 + rate) ^ years
Return balance
End function

推荐答案


这篇关于如何计算函数的复利的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 09:49