W3cubDocs

/Kotlin

min

inline fun min(a: Double, b: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun min(a: Float, b: Float): Float

Platform and version requirements: Kotlin 1.2

Returns the smaller of two values.

If either value is NaN, then the result is NaN.

inline fun min(a: Int, b: Int): Int

Platform and version requirements: Kotlin 1.2

inline fun min(a: Long, b: Long): Long

Platform and version requirements: Kotlin 1.2

Returns the smaller of two values.

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