toDouble

@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toDouble(): Double

Returns this number as Double.


Calling from Kotlin

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

val actual: Double = Zero()
.toDouble()
val expected = 0.0
assertEquals(expected, actual)

Calling from Java

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

final double actual = new Zero()
.toDouble();
final double expected = 0.0;
Assertions.assertEquals(expected, actual);