coerceAtMost
Ensures that this value is not greater than the specified maximumValue.
Since Kotlin
1.0Return
this value if it's less than or equal to the maximumValue or the maximumValue otherwise.
Samples
Ensures that this value is not greater than the specified maximumValue.
Since Kotlin
1.0Return
this value if it's less than or equal to the maximumValue or the maximumValue otherwise.