A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
functoin which gives reminder from division operation
Joined: Apr 07, 2005
Feb 22, 2007 22:11:00
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
which could return the reminder from division opration.
author and iconoclast
Joined: Jul 08, 2003
Feb 22, 2007 22:19:00
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,
choose a forum more carefully before posting a question.
[Jess in Action]
I agree. Here's the link:
subject: functoin which gives reminder from division operation
Why is this math wrong?
Reminder: Please always mention the source of any mock exam question you post.
Reminder: Position on posting real questions and requests for braindumps
Winners: Rails for Java Developers
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015