Golang 小数 四舍五入 最简便方法 go 小数 四舍五入

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))
}
原文地址:https://www.cnblogs.com/arvin-an/p/15044083.html