Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

functoin which gives reminder from division operation

 
swatione chowdary
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic