Comment on If I hear "% is a mathematical operator" one more time...
jeff@programming.dev 1 week agoYou are misunderstanding what the remainder is.
5 % 2 == 1, because 5 == 2 x 2 + 1
10 % 7 == 3, because 10 == 1 x 7 + 3
Your “edit 2” is mostly correct. I don’t think of it “undoing” the division. But if that makes sense to you then I guess it’s fine