W3cubDocs

/Kotlin

mod

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun mod(other: Byte): Long
Deprecated: Use rem(other) instead
operator fun mod(other: Short): Long
Deprecated: Use rem(other) instead
operator fun mod(other: Int): Long
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–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/mod.html