angst
01-04-2007, 03:56 PM
Hello,
I don't quite understand the Math.pow() function,
I'm tring to convert this function to asp:
function monthlyPayment(principal, interest, years){
var intdec = Math.pow(1 + interest / 200, 1 / 6);
var numer = intdec - 1;
var denom = 1 - Math.pow(intdec, -12 * years);
var pmt = principal * numer / denom;
var rndval = Math.round(pmt * 100) / 100;
return rndval;
}
any help would be great,
thanks in advance for your time!
-Ken
I don't quite understand the Math.pow() function,
I'm tring to convert this function to asp:
function monthlyPayment(principal, interest, years){
var intdec = Math.pow(1 + interest / 200, 1 / 6);
var numer = intdec - 1;
var denom = 1 - Math.pow(intdec, -12 * years);
var pmt = principal * numer / denom;
var rndval = Math.round(pmt * 100) / 100;
return rndval;
}
any help would be great,
thanks in advance for your time!
-Ken