fun max(a: Double, b: Double): Double
fun max(a: Float, b: Float): Float
Returns the greater of two values.
If either value is NaN
, then the result is NaN
.
fun max(a: Int, b: Int): Int
fun max(a: Long, b: Long): Long
Returns the greater of two values.
@ExperimentalUnsignedTypes fun max(a: UInt, b: UInt): UInt
@ExperimentalUnsignedTypes fun max(a: ULong, b: ULong): ULong
Returns the greater of two values.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/max.html