div

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun div(other: Byte): Int
operator fun div(other: Short): Int
operator fun div(other: Int): Int
operator fun div(other: Long): Long

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun div(other: Float): Float
operator fun div(other: Double): Double

Divides this value by the other value.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/div.html