Engisoft
08-11-2005, 11:49 PM
Can anyone tell me why when I convert this vbscript code to javascript I get infinity rather than 0.876794146362291?
VbScript:
GetBase = (1 - (1 + 0.00583333333333333) ^ -360)
Results to 0.876794146362291
Javascript:
Math.pow(1 - (1 + 0.00583333333333333), -360);
Results to Infinity
VbScript:
GetBase = (1 - (1 + 0.00583333333333333) ^ -360)
Results to 0.876794146362291
Javascript:
Math.pow(1 - (1 + 0.00583333333333333), -360);
Results to Infinity