Answers for "kotlin how to convert int to float"

0

kotlin string to float

val fstr1 = "123.45f"
val float1: Float? = fstr1.toFloat()
println(float1) 		// 123.45
Posted by: Guest on May-26-2021

Code answers related to "kotlin how to convert int to float"

Browse Popular Code Answers by Language