kotlin-stdlib / kotlin.math / max max Common JVM JS Native 1.2 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. Common JVM JS Native 1.2 fun max(a: Int, b: Int): Int fun max(a: Long, b: Long): Long Returns the greater of two values. Common JVM JS Native 1.3 @ExperimentalUnsignedTypes fun max(a: UInt, b: UInt): UInt @ExperimentalUnsignedTypes fun max(a: ULong, b: ULong): ULong Returns the greater of two values.