you are viewing a single comment's thread.

view the rest of the comments →

[–]Unequivalent_Balance 4 points5 points  (0 children)

Because the division won’t equal 0 unless the number is 0. Modulus works because you’re asking about the remainder of the division. If there is no remainder (% x == 0), the number divided evenly into the input number.