div

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

Divides this value by other, 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): PositiveInt
infix operator fun div(other: StrictlyNegativeInt): NegativeInt

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