div
Платформы и требования к версиям: Common (1.0), JS (1.1), JVM (1.0)
expect operator fun div(other: Byte): Int
expect operator fun div(other: Short): Int
expect operator fun div(other: Int): Int
expect operator fun div(other: Long): Long
Делит это значение на другое значение, округляя результат до целого числа в сторону нуля.
expect operator fun div(other: Float): Float
expect operator fun div(other: Double): Double
Делит это значение на другое значение.
Платформы и требования к версиям: Native (1.3), Wasm-JS (1.8), Wasm-WASI (1.8)
actual inline operator fun div(other: Byte): Int
actual inline operator fun div(other: Short): Int
actual inline operator fun div(other: Int): Int
actual inline operator fun div(other: Long): Long
Делит это значение на другое значение, округляя результат до целого числа в сторону нуля.
actual inline operator fun div(other: Float): Float
actual inline operator fun div(other: Double): Double
Делит это значение на другое значение.
© 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/-byte/div.html