div

operator external fun div(other: Byte): Long(source)
operator external fun div(other: Short): Long(source)
operator external fun div(other: Int): Long(source)
operator external fun div(other: Long): Long(source)

Divides this value by other.

The quotient truncates towards zero. Dividing Long.MIN_VALUE by -1 returns MIN_VALUE through wrapping overflow.

Return

the Long quotient.

Parameters

other

divisor.

Throws


operator external fun div(other: Float): Float(source)

Divides this value by other.

Operands are converted to Float before the operation; integral precision can be lost. Floating results follow IEEE arithmetic, including signed zeros, infinities and NaN. A zero divisor produces an IEEE infinity or NaN, without an arithmetic exception.

Return

the Float quotient.

Parameters

other

divisor.


operator external fun div(other: Double): Double(source)

Divides this value by other.

Operands are converted to Double before the operation; integral precision can be lost. Floating results follow IEEE arithmetic, including signed zeros, infinities and NaN. A zero divisor produces an IEEE infinity or NaN, without an arithmetic exception.

Return

the Double quotient.

Parameters

other

divisor.