convert string to float64 in golang code example
Example 1: golang convert string to float
const bitSize = 64 // Don't think about it to much. It's just 64 bits.
floatNum, err := strconv.ParseFloat("123.45", bitSize)
fmt.Println(fmt.Sprintf("%f", floatNum))
Example 2: golang parse float64
f, err := strconv.ParseFloat("3.1415", 64)