toByte

open override fun toByte(): Byte(source)

Deprecated

Warning since 1.3

Error since 1.5

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

Replace with

toInt().toByte()

Converts this Float value to Byte.

The resulting Byte value is equal to this.toInt().toByte().

Since Kotlin

1.1
open override fun toByte(): Byte(source)

Deprecated

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

Replace with

toInt().toByte()

Converts this Float value to Byte.

The resulting Byte value is equal to this.toInt().toByte().

Since Kotlin

1.0