Quote Originally Posted by OT²O View Post
Yeah that's what i thought but why when you use math pow you have to enter two parts separated by a comma and only one of them is the actual exponent? Like in this example 1+rate is not an exponent but it is in the math.pow but year is an exponent?
Code:
Math.pow(1 + rate, year);
pow is a function of the math object. Pow requires 2 arguments, the first being a double for the base number and the second being the number of the exponent.

So Math.pow(8,3) would be the same as 8^3

http://download.oracle.com/javase/1....e,%20double%29