mod

fun mod(modulus: KBigInt): KBigInt

The remainder that is never negative, so (-7).mod(3) is 2.