func round(x float64){
return int(math.Floor(x + 0/5))
}
func round(x float64){
return int(math.Floor(x + 0/5))
}
func round(x float64){
return int(math.Floor(x + 0/5))
}
func round(x float64){
return int(math.Floor(x + 0/5))
}
func round(x float64){
return int(math.Floor(x + 0/5))
}
func round(x float64){
return int(math.Floor(x + 0/5))
}
func round(x float64){
return int(math.Floor(x + 0/5))
}
Golang 小数 四舍五入 最简便方法 go 小数 四舍五入
原文:https://www.cnblogs.com/arvin-an/p/15044083.html