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))
}
posted @ 2021-07-22 14:49  格罗玛什·地狱咆哮  阅读(900)  评论(0)    收藏  举报