转到将float转换为字符串
s := fmt.Sprintf("%f", 123.456) // s == "123.456000"
float64到字符串golang
float64ToString := fmt.Sprint(float64)
golang将字符串转换为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))