toShort

open override fun toShort(): Short(source)

Deprecated

Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.

Replace with

toInt().toShort()

Converts this Double value to Short.

The resulting Short value is equal to this.toInt().toShort().

Since Kotlin

1.0