asow8@mander.xyz to Science Memes@mander.xyzEnglish · edit-210 days agoIf I hear "% is a mathematical operator" one more time...message-squaremessage-square23fedilinkarrow-up175arrow-down13file-text
arrow-up172arrow-down1message-squareIf I hear "% is a mathematical operator" one more time...asow8@mander.xyz to Science Memes@mander.xyzEnglish · edit-210 days agomessage-square23fedilinkfile-text
minus-squarejeff 👨💻@programming.devlinkfedilinkEnglisharrow-up9·10 days 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
You 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