toFloat
Returns this number as Float.
Calling from Kotlin
Here's an example of calling this method from Kotlin code:
val actual: Float = Zero()
.toFloat()
val expected = 0f
assertEquals(expected, actual)
Content copied to clipboard
Calling from Java
Here's an example of calling this method from Java code:
final float actual = new Zero()
.toFloat();
final float expected = 0;
Assertions.assertEquals(expected, actual);
Content copied to clipboard