toChar

@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toChar(): Char

Returns the character representation of this number.


Calling from Kotlin

Here's an example of calling this method from Kotlin code:

val actual: Char = Zero()
.toChar()
val expected = '0'
assertEquals(expected, actual)

Calling from Java

Here's an example of calling this method from Java code:

final char actual = new Zero()
.toChar();
final char expected = '0';
Assertions.assertEquals(expected, actual);