|
-
Dec 16th, 2010, 08:23 PM
#4
Re: Math.pow
 Originally Posted by OT²O
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|