Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

Convert Double to Int

843835May 28 2002 — edited May 17 2007
Hi,

How can I convert a double datatype eg. 0.309414484580145 to an integer?

I want to round the double to the the nearest integer. Maybe there is another way?

Regards

Pierre
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2007
Added on May 28 2002
11 comments
578 views