toLong

@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toLong(): Long

Returns this number as Long.


Calling from Kotlin

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

val actual: Long = Zero()
.toLong()
val expected = 0L
assertEquals(expected, actual)

Calling from Java

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

final long actual = new Zero()
.toLong();
final long expected = 0;
Assertions.assertEquals(expected, actual);