toShort
Deprecated
Warning since 1.3
Error since 1.5
Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.
Replace with
toInt().toShort()
Content copied to clipboard
Converts this Float value to Short.
The resulting Short
value is equal to this.toInt().toShort()
.
Since Kotlin
1.0Deprecated
Warning since 1.3
Error since 1.5
Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.
Replace with
toInt().toShort()
Content copied to clipboard
Converts this Float value to Short.
The resulting Short
value is equal to this.toInt().toShort()
.