W3cubDocs

/Kotlin

mod

operator fun mod(other: Byte): Int
Deprecated: Use rem(other) instead
operator fun mod(other: Short): Int
Deprecated: Use rem(other) instead
operator fun mod(other: Int): Int
Deprecated: Use rem(other) instead
operator fun mod(other: Long): Long
Deprecated: Use rem(other) instead
operator fun mod(other: Float): Float
Deprecated: Use rem(other) instead
operator fun mod(other: Double): Double
Deprecated: Use rem(other) instead

Calculates the remainder of dividing this value by the other value.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/mod.html