div

infix operator fun div(other: Int): Int
infix operator fun div(other: PositiveInt): Int
infix operator fun div(other: NegativeInt): Int

Divides this value by the other value, truncating the result to an integer that is closer to 0. Throws an ArithmeticException if the other value equals 0.


infix operator fun div(other: NonZeroInt): Int
infix operator fun div(other: StrictlyPositiveInt): Int
infix operator fun div(other: StrictlyNegativeInt): Int

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