Skip to Main Content

New to Java

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 a double

807599Apr 23 2007 — edited Apr 23 2007
Hi all,

as you can tell from my question I am new to JAVA. So far I love it.

I need to round a double to 2 places but the Math.round method rounds to an integer. Does someone have a good way to round to 2 places?

Thanks

Message was edited by:
LTLhawk
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2007
Added on Apr 23 2007
6 comments
234 views