W3cubDocs

/Kotlin

max

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

Platform and version requirements: Kotlin 1.2

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

Platform and version requirements: Kotlin 1.2

Returns the greater of two values.

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

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

Platform and version requirements: Kotlin 1.2

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

Platform and version requirements: Kotlin 1.2

Returns the greater 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/max.html