limitTo
Limits the float value to the given range.
Parameters
min
The minimum value.
max
The maximum value.
Deprecated
This function is deprecated and will be removed in the future. Use `kotlin.ranges.coerceIn` instead.
Replace with
this.coerceIn(min, max)
Content copied to clipboard
Limits the integer value to the given range.
Parameters
min
The minimum value.
max
The maximum value.