toInt

@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toInt(): Int

Returns this number as Int.


Calling from Kotlin

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

val actual: Int = Zero()
.toInt()
val expected = 0
assertEquals(expected, actual)

Calling from Java

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

final int actual = new Zero()
.toInt();
final int expected = 0;
Assertions.assertEquals(expected, actual);