rem

operator external fun rem(other: Byte): Double(source)
operator external fun rem(other: Short): Double(source)
operator external fun rem(other: Int): Double(source)
operator external fun rem(other: Long): Double(source)
operator external fun rem(other: Float): Double(source)
operator external fun rem(other: Double): Double(source)

Returns the remainder after dividing 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. Uses a quotient truncated towards zero, rather than IEEE nearest-integer remainder. A zero divisor or infinite dividend produces NaN; a finite dividend modulo infinity is unchanged.

Return

the Double remainder.

Parameters

other

divisor.