toShort

open override fun toShort(): Short(source)

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()

Converts this Float value to Short.

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

Since Kotlin

1.0
open override fun toShort(): Short(source)

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()

Converts this Float value to Short.

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

Since Kotlin

1.1
open override fun toShort(): Short(source)

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()

Converts this Float value to Short.

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

Since Kotlin

1.3
open inline override fun toShort(): Short(source)

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()

Converts this Float value to Short.

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

Since Kotlin

1.8
open inline override fun toShort(): Short(source)

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()

Converts this Float value to Short.

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

Since Kotlin

1.8