Spec-Zone.ru › Kotlin 2

rem

kotlin-stdlib/kotlin/Double/rem

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

expect operator fun rem(other: Byte): Double
expect operator fun rem(other: Short): Double
expect operator fun rem(other: Int): Double
expect operator fun rem(other: Long): Double
expect operator fun rem(other: Float): Double
expect operator fun rem(other: Double): Double

Вычисляет остаток от деления с усечением этого значения (делимого) на другое значение (делитель).

Результат равен нулю или имеет тот же знак, что и делимое, а его абсолютное значение меньше абсолютного значения делителя.

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

actual inline operator fun rem(other: Byte): Double
actual inline operator fun rem(other: Short): Double
actual inline operator fun rem(other: Int): Double
actual inline operator fun rem(other: Long): Double
actual inline operator fun rem(other: Float): Double
actual operator external fun rem(other: Double): Double

Вычисляет остаток от деления с усечением этого значения (делимого) на другое значение (делитель).

Результат равен нулю или имеет тот же знак, что и делимое, а его абсолютное значение меньше абсолютного значения делителя.

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

actual inline operator fun rem(other: Byte): Double
actual inline operator fun rem(other: Short): Double
actual inline operator fun rem(other: Int): Double
actual inline operator fun rem(other: Long): Double
actual inline operator fun rem(other: Float): Double
actual operator fun rem(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/-double/rem.html

Spec-Zone.ru

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