I am trying to convert the below list vb.net code to b4a. I can not tell if I can use power and Logarithm in place of exp() and Log().
Public Function InvestFV(ByVal Principal As Double, ByVal InterestRate As Double, _
ByVal CompoundYear As Integer, ByVal NumberMonths As Integer) As Double
Dim Growth As Double
Growth = Exp(NumberMonths / 12.0# * CompoundYear * _
Log(1.0# + InterestRate / 100.0# / CompoundYear))
InvestFV = (Principal * Growth)
End Function
Public Function InvestFV(ByVal Principal As Double, ByVal InterestRate As Double, _
ByVal CompoundYear As Integer, ByVal NumberMonths As Integer) As Double
Dim Growth As Double
Growth = Exp(NumberMonths / 12.0# * CompoundYear * _
Log(1.0# + InterestRate / 100.0# / CompoundYear))
InvestFV = (Principal * Growth)
End Function