mod

inline fun mod(other: UByte): UByte(source)
inline fun mod(other: UShort): UShort(source)
inline fun mod(other: UInt): UInt(source)
inline fun mod(other: ULong): ULong(source)

Calculates the remainder of flooring division of this value (dividend) by the other value (divisor).

The result is always less than the divisor.

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

Since Kotlin

1.5