Math Fundamentals18 sections · 814 units
Open in Course

Last Digit - Insight

Remainder when dividing by 10

When you divide a number by 1010, the remainder is the last digit. For example, 12345÷10=123412345 \div 10 = 1234 with remainder 55.

So the last digit of nn is nmod10n \bmod 10. This works for any positive integer.

Similarly, n/10\lfloor n / 10 \rfloor removes the last digit. If n=12345n = 12345, then n/10=1234\lfloor n / 10 \rfloor = 1234.