草庐IT

interestmonthly

全部标签

PHP计算函数

我在Excel中进行了计算,并试图在PHP中使用它。不幸的是,当我使用我编写的函数时,我没有得到正确的总数。这是我在Excel中使用的计算结果:2500/((0.25/100)/(1-((1+(0.25/100))^-360)))我用PHP做的计算函数:functioncalculatesum($income,$interestmonthly,$months){return$income/(($interestmonthly/100)/(1-((1+($interestmonthly/100))^-$months)));}PHP中的函数返回:'360000000'。但这应该是'592.