rem

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

Calculates the remainder of truncating division of this value by the other value.

The result is either zero or has the same sign as the dividend and has the absolute value less than the absolute value of the divisor.

Since Kotlin

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

Calculates the remainder of truncating division of this value by the other value.

The result is either zero or has the same sign as the dividend and has the absolute value less than the absolute value of the divisor.

Since Kotlin

1.3