Spec-Zone.ru › Kotlin 2

div

kotlin-stdlib/kotlin/Long/div

Требования к платформе и версии: Common (1.0), JVM (1.0)

expect operator fun div(other: Byte): Long
expect operator fun div(other: Short): Long
expect operator fun div(other: Int): Long
expect operator fun div(other: Long): Long

Делит это значение на другое значение, округляя результат до целого числа в сторону нуля.


expect operator fun div(other: Float): Float
expect operator fun div(other: Double): Double

Делит это значение на другое значение.

Требования к платформе и версии: JS (1.1), Wasm-JS (1.8), Wasm-WASI (1.8)

actual inline operator fun div(other: Byte): Long
actual inline operator fun div(other: Short): Long
actual inline operator fun div(other: Int): Long
actual operator fun div(other: Long): Long

Делит это значение на другое значение, округляя результат до целого числа в сторону нуля.


actual inline operator fun div(other: Float): Float
actual inline operator fun div(other: Double): Double

Делит это значение на другое значение.

Требования к платформе и версии: Native (1.3)

actual inline operator fun div(other: Byte): Long
actual inline operator fun div(other: Short): Long
actual inline operator fun div(other: Int): Long
actual operator external 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/-long/div.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API