Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Math.exp with BigDecimal

807588Mar 12 2009 — edited Mar 12 2009
Hi

I am trying to do

currentSp = Math.exp(currentSpVal.add(runningSpVal));

where currentSp , currentSpVal and runningSpVal are all BigDecimals.

Is there a way to do this without using Math.exp(double) and directly with BigDecimals and not type double.
The given line of code obviously gives an error.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2009
Added on Mar 12 2009
1 comment
640 views