How to calculate
Find the unique remainder r from 0 up to one less than the absolute divisor. There is an integer q with dividend = divisor × q + r.
Worked example
Use Dividend -9 · Divisor 4. The result is 3.
Input and result notes
Negative values are allowed. The divisor must be nonzero.