dstring to float 32 golang code example
Example 1: Go convert float to a string
s := fmt.Sprintf("%f", 123.456) // s == "123.456000"
Example 2: golang parse float64
f, err := strconv.ParseFloat("3.1415", 64)
s := fmt.Sprintf("%f", 123.456) // s == "123.456000"
f, err := strconv.ParseFloat("3.1415", 64)