math math.Round 返回最接近的整数,恰好为半数时向远离零的方向舍入。 签名 math.Round VALUE 返回类型 float64 {{ math.Round 1.5 }} → 2 ← 上一篇:math.Rand 下一篇:math.Sin →