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.

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,293 views