Section 6.5 Remainders
A remainder is the amount that “remains” after division takes place. The mathematical operation that produces this remainder is called the modulo operation. Note that this is the fractional remainder, not a decimal value, so the result of the modulo operation should always be an integer. For example, the remainder when dividing 29 by 3 is 2 since 3 goes into 29 just 9 times and 29 - 9*3 = 2.
Suppose we want to know the remainder of the division of one integer by another. Can we do this with our current programming knowledge?
admin.....open in new window
Investigate 6.4.
What is the remainder of 15/6?