rem
Начиная с Kotlin: 1.5
inline operator fun rem(other: UByte): UInt
inline operator fun rem(other: UShort): UInt
inline operator fun rem(other: UInt): UInt
inline operator fun rem(other: ULong): ULong
Вычисляет остаток от целочисленного деления с усечением этого значения (делимого) на другое значение (делитель).
Результат всегда меньше делителя.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-u-short/rem.html