There is input that I need to read from the console as a string, then process the string and convert it to float32.
I tried using:
float, _ := strconv.ParseFloat(myString, 32)
But that will not work. This is the error I get:
cannot use float (type float64) as type float32 in value field
Is there anything else I could do? Thank!
source
share