mod

Common
JVM
JS
Native
1.0
fun mod(other: UByte): UByte
fun mod(other: UShort): UShort
fun mod(other: UInt): UInt
fun mod(other: ULong): ULong

Calculates the remainder of flooring division of this value by the other value.

The result is always less than the divisor.

For unsigned types, the remainders of flooring division and truncating division are the same.