# Thread: Modulo - shouldn't it be 0?

1. ## Modulo - shouldn't it be 0?

Hi,

Why is it (for example) that 2 mod 5 is 2, not 0? Modulo is just the remainder of (in this case) dividing 2 by 5, and since it doesn't divide as a whole number, it just makes sense to me that it should be 0. Would anyone mind explaining why it doesn't work like this?

Thanks!

2. ## Re: Modulo - shouldn't it be 0?

Because $\frac{2}{5}$ is 0 with a remainder of 2.

3. ## Re: Modulo - shouldn't it be 0?

So obvious - beautifully stated. You are a king.

4. ## Re: Modulo - shouldn't it be 0?

you can look at it like this:

$a \equiv b\ (\mod m)$

is the same as saying:

$m|a-b$