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!

Division and Remainders

843836Feb 28 2005 — edited Feb 28 2005
HI Guys,

How can I tell if my division has a remainder? I need to do the following:
int someNumber = Integer.parseInt(request.getParameter("theNumber"));
double ttl = 3 / someNumber ;
if (double has a remainder)
{
 execute some code
}
else
{
 execture some other code
}
Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2005
Added on Feb 28 2005
2 comments
145 views