toChar

open fun toChar(): Char(source)

Deprecated

Warning since 1.9

Error since 2.3

Direct conversion to Char is deprecated. Use toInt().toChar() or Char constructor instead. If you override toChar() function in your Number inheritor, it's recommended to gradually deprecate the overriding function and then remove it. See https://youtrack.jetbrains.com/issue/KT-46465 for details about the migration

Replace with

this.toInt().toChar()

Returns the Char with the numeric value equal to this number, truncated to 16 bits if appropriate.

Since Kotlin

1.0
open fun toChar(): Char(source)

Deprecated

Warning since 1.9

Error since 2.3

Direct conversion to Char is deprecated. Use toInt().toChar() or Char constructor instead. If you override toChar() function in your Number inheritor, it's recommended to gradually deprecate the overriding function and then remove it. See https://youtrack.jetbrains.com/issue/KT-46465 for details about the migration

Replace with

this.toInt().toChar()

Returns the Char with the numeric value equal to this number, truncated to 16 bits if appropriate.

Since Kotlin

1.1
open fun toChar(): Char(source)

Deprecated

Warning since 1.9

Error since 2.3

Direct conversion to Char is deprecated. Use toInt().toChar() or Char constructor instead. If you override toChar() function in your Number inheritor, it's recommended to gradually deprecate the overriding function and then remove it. See https://youtrack.jetbrains.com/issue/KT-46465 for details about the migration

Replace with

this.toInt().toChar()

Returns the Char with the numeric value equal to this number, truncated to 16 bits if appropriate.

Since Kotlin

1.3