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!

java math divide

843789May 7 2010 — edited May 7 2010
Greeting.
I'm facing a problem with java math. When I outprint (1/2) it will be 0 not 0.5. Any idea?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2010
Added on May 7 2010
5 comments
159 views