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!

how do i round a double to 2 decimal places

807589Dec 17 2003 — edited Jul 8 2008
hi,

i want to round the result of a calculation (that is returned as a double) to 2 decimal places.

which Math method do I use?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2008
Added on Dec 17 2003
33 comments
4,448 views