解决的方法
· 利用取近似值的方法解决这个问题。
(1)利用fmt.Sprintf()
func Round2(f float64, n int) float64 {
	floatStr := fmt.Sprintf("%."+strconv.Itoa(n)+"f", f)
	inst, _ := strconv.ParseFloat(floatStr, 64)
	return inst
}
(2)利用math.Trunc()
func Round(f float64, n int) float64 {
	n10 := math.Pow10(n)
	return math.Trunc((f+0.5/n10)*n10) / n10
}
    破罐子互摔
    
    
    










