Find a mod n — and see why programming languages and mathematicians disagree about negatives.

Modulo

Remainders, including negative ones.

Find a mod n — and see why programming languages and mathematicians disagree about negatives.