[thelist] JavaScript Mathematical Calculation

Vasily Petruhin bazile at i2b.ru
Tue Feb 10 09:27:31 CST 2004


> I need to convert this calculation from VBScript to JavaScript:
> qrate = -1 + (v5year*v5year) ^ (1/12)
qrate = -1 + Math.pow(v5year*v5year, 1/12); should do the job.
And the result is equal to VBScript expression.

This expression can also be simplified to: 
qrate = -1 + Math.pow(v5year, 1/6);


More information about the thelist mailing list