Answers for "how to convert string to floatin kotin"

8

convert string to float java

String yourString = "23.7";
float yourFloat = Float.parseFloat(yourString);
Posted by: Guest on October-28-2020
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 "how to convert string to floatin kotin"

Browse Popular Code Answers by Language