minus

operator external fun minus(other: Byte): Int(source)
operator external fun minus(other: Short): Int(source)
operator external fun minus(other: Int): Int(source)

Subtracts other from this value.

Operands use Int arithmetic, wrapping modulo 2^32 on overflow.

Return

the Int difference.

Parameters

other

value to subtract.


operator external fun minus(other: Long): Long(source)

Subtracts other from this value.

Operands use Long arithmetic, wrapping modulo 2^64 on overflow.

Return

the Long difference.

Parameters

other

value to subtract.


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

Subtracts other from this value.

Operands are converted to Float before the operation; integral precision can be lost. Floating results follow IEEE arithmetic, including signed zeros, infinities and NaN.

Return

the Float difference.

Parameters

other

value to subtract.


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

Subtracts other from this value.

Operands are converted to Double before the operation; integral precision can be lost. Floating results follow IEEE arithmetic, including signed zeros, infinities and NaN.

Return

the Double difference.

Parameters

other

value to subtract.