HNHacker News
TopNewBestAskShowJobs

curranlipsett

1 karma · joined March 15, 2017

submissionscomments
curranlipsett··on Mod and remainder are not the same
I posted a similar comment and had the same feeling. I'm glad you noticed/pointed it out too!
curranlipsett··on Mod and remainder are not the same
So: 5 mod 2 would be 1 because 5 divided by 2 is 4 with one left over.

I do not like this explanation and just don't understand what the author is getting at with this example. The answer of 1 is correct, but the explanation is just plain wrong and that makes it tough to agree with the author's thought process through the rest of the article.