Round 函数

完全限定名称:Std.Math.Round

function Round(value : Double) : Int

总结

返回指定数字的最接近的整数。 half 将四舍五入为零。 例如:Round(3.7) = 4;四舍五入 (-3.7) = -4;舍入 (3.5) = 3;

参考文献

维基百科文章 - 四舍五入