This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes functoin which gives reminder from division operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "functoin which gives reminder from division operation" Watch "functoin which gives reminder from division operation" New topic
Author

functoin which gives reminder from division operation

swatione chowdary
Greenhorn

Joined: Apr 07, 2005
Posts: 27
if we divide two numbers we have to get reminder like:


34/10=3 , but reminder is 4. we should catch 4 in an integer. any function in java which could return the reminder from division opration.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

That would be the modulus operator, '%', as in 34 % 10 == 4.

Moving from Java in General (Advanced) to Java in General (Beginner). In the future, please choose a forum more carefully before posting a question.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: functoin which gives reminder from division operation
 
Similar Threads
Why is this math wrong?
Reminder: Please always mention the source of any mock exam question you post.
Winners: Rails for Java Developers
SQL
Reminder: Position on posting real questions and requests for braindumps