Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exponentiation calculations 1

Status
Not open for further replies.

Jetter88

Programmer
Nov 14, 2003
35
CA
hi...
I'm having a problem figuring out a calculation in Java. It works in Excel though.
Excel formula sample is:
Cell A7 = .065
(1+A7)^(1/12)-1
result=0.005261

How do I correctly get the ^ in Java?

thanks in advance.
Mark
 
Well this is more a question for the Java forum, this one is for pure J2EE questions.

Anyway, I think Math.pow is the answer.

Cheers,
Dian
 
Sorry about that.
Just curious... I re-posted in the Java (Sun) forum, but is there a way to moved the thread to a new forum or is re-posting the only soultion?

 
Reposting, AFAIK, but in this case, if you got your answer, you don't need to repost :)

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top