...

View Full Version : convert Math.pow() function to asp?



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

Shaffer
01-04-2007, 06:01 PM
Here:
math.pow(parameterA, parameterB);
math.pow means parameterA's parmeterB'th power.
Get what I mean?


Shaffer.

angst
01-04-2007, 06:24 PM
ah yes,, i've just figured it out before you posted,

so in asp i can use "parameterA ^ parameterB"

thanks,
-Ken



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum