[thelist] [java-script-world] JavaScript Mathematical Calculation
John C Bullas
jcbullas at nildram.co.uk
Wed Feb 11 00:27:52 CST 2004
>
>Don't know what you tried, but it worked fine for me in IIS JScript and
>client JavaScript
>
> var qrate = -1 + Math.pow (v5year * v5year, 1 / 12);
>
>Same results for v5year = 1.25 and 125.
>
>For 125 JavaScript gives 1.2360679774997898, VBScript gives 1.23606797749979.
>
>(NB for 1.25, the displayed result appeared different because VBScript
>displayed it in exponential form - i.e. with E-02 - whereas JScript did not.)
>
>Environment Win 2000 server IIS and IE6 JavaScript.
>
>FB via Dave S of the java-script-world yahoogroup
More information about the thelist
mailing list