← Docs
kotlin-stdlib / kotlin / Int / toChar

toChar

Common
JVM
JS
Native
1.0
fun toChar ( ) : Char
(Common source) (Native source)

Converts this Int value to Char .

If this value is in the range of Char codes Char.MIN_VALUE..Char.MAX_VALUE , the resulting Char code is equal to this value.

The resulting Char code is represented by the least significant 16 bits of this Int value.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .