mod
Требования к платформе и версии: 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
Вычисляет остаток от деления с округлением этого значения на другое значение.
Результат всегда меньше делителя.
Для беззнаковых типов остатки от деления с округлением и усечением совпадают.
© 2010–2022 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-byte/mod.html