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!

ROUND_UNNECESSARY -> java.lang.ArithmeticException: Rounding necessary

807569Aug 23 2006 — edited Aug 23 2006
I am doing a BigDecimal.divide with ROUND_UNNECESSARY as my rounding mode - this is because I want the real number returned to me so that I can use my own customized rounding method. How can I accomplish this without rounding? By the way, the operation can have any real number as numerator and denominator
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2006
Added on Aug 23 2006
5 comments
617 views