Answers for "string float or int 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

Code answers related to "string float or int kotlin"

Browse Popular Code Answers by Language