Modulo Operator Confusion

Welcome to the forum @ChaoticReality ! :partying_face: This is a friendly place where you can ask help on levels, report bugs, or just chat with other coders! Don’t forget to read the guidelines if you haven’t yet. Have a great time!

So basically the modulo operator does this:
You have 2 numbers, when you divide one of them on the other, the remainder (that is the number left before you start making decimals) will be the result of the modulo.

So imagine you want to divide 13 over 3
there are 4 threes in 13 and an extra one (4*3 = 12, 12 + 1 = 13)
So 13 % 3 = 1 (which is the remainder)

Hope this helps :slight_smile: if you need any more explanation, then feel free to @ me

1 Like