共用方式為


Round 函式

完整名稱:Std.Math.Round

function Round(value : Double) : Int

總結

將最接近的整數傳回指定的數位。 half 將四捨五入為零。 例如:Round(3.7) = 4;四捨五入 (-3.7) = -4;捨入 (3.5) = 3;

參考資料

維琪百科文章 - 四捨五入