News for hackers. Stuff that matters.
Re:Why Python's Integer Division Floors (2010) by marcosdumay on Wednesday February 28, 2024 @01:12PM (#39541679)
That's not any clearer. Both "modulo" and "remainder" can be defined in ways (yeah, more than one) that include or exclude negative numbers.

You have to memorize the full definition. There's no mnemonic shortcut.

Re:Why Python's Integer Division Floors (2010) by chubot on Wednesday February 28, 2024 @06:23PM (#39544810)
Remainder goes with division, and respects invariants

Modulus doesn’t. I believe that algebraically equality module N can exist without division