toChar

Common
JVM
JS
Native
1.0
@DeprecatedSinceKotlin("1.9", "2.3") open fun toChar(): Char
(Common source) (Native source)
Deprecated: Direct conversion to Char is deprecated. Use toInt().toChar() or Char constructor instead.\nIf you override toChar() function in your Number inheritor, it's recommended to gradually deprecate the overriding function and then remove it.\nSee https://youtrack.jetbrains.com/issue/KT-46465 for details about the migration

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