mod

Platform and version requirements: JVM (1.0), JS (1.0), 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.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/mod.html