mod

fun mod(m: Int, n: Int): Int(source)

The modulo operation that also works for negative dividends.

Return

The remainder.

Parameters

m

The dividend.

n

The divisor.

See also