rem
Начиная с Kotlin: 1.5
inline operator fun rem(other: UByte): ULong
inline operator fun rem(other: UShort): ULong
inline operator fun rem(other: UInt): ULong
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-long/rem.html