Is someone a programmer if they don't know what MOD is? A few decades ago in my country, the Chinese remainder theorem (the generalized version to a ring, with coprime ideals ...)'s DEMONSTRATION was still demanded of students ... in high shool. I was stunned too, but more because % isn't a mod operator but a remainder operator, which makes it worthless in most 'mod'-like instructions (loops that go past iList.Count and restart from the start (when you have to to write i - 1)).
Beginner programmer here and I was a little stumped but this helped SO MUCH!! THANKS SO MUCH!!
by far the best tutorial about this concept. Thank you!
Is someone a programmer if they don't know what MOD is? A few decades ago in my country, the Chinese remainder theorem (the generalized version to a ring, with coprime ideals ...)'s DEMONSTRATION was still demanded of students ... in high shool. I was stunned too, but more because % isn't a mod operator but a remainder operator, which makes it worthless in most 'mod'-like instructions (loops that go past iList.Count and restart from the start (when you have to to write i - 1)).
what is -1 % 10 in C#