Answers for "float to in kotlin"

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

Browse Popular Code Answers by Language