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!

Rounding up to the nearest 0.05

807603Aug 10 2006 — edited Dec 20 2007
Hi guys i am trying to round a value up to the nearest 0.05. e.g. the value 94.63 would be rounded up as 94.65

I have used big decimal with the round half up and round up modes but it still outputs 94.63

How can I get arround this ?

Cheers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2008
Added on Aug 10 2006
7 comments
2,632 views