I need to perform the following formula 1-(1+i)(power)-n I know that i need to use the Math. class but im not sure on which one, i have tired maths.Floor and it didnt work (got a negative number) any help would be great as always .
I need to perform the following formula 1-(1+i)(power)-n This doesn't look like a mathematical expression that I can parse, but I think you have a compounded interest in mind: 1 - (1 + i)^(-n) If so, the corresponding Java code would be:
For more information, see the javadocs for the pow() method of the Math class
Joined: Mar 25, 2004
Yup im thinking compound interest, sorry shoulda said that, ah so its .pow i thought i couldnt use that because i was using ints not doubles lol, well looks like im still n00b rock on d0de!