Skip to main content

Section 6.6 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