Ceiling(0.5); // 1 使用 Math.Round 取整. Math.Round(0.5, MidpointRounding.AwayFromZero); // 1 和 Math.Floor 四捨五入. Math.Floor(0.5); // 0.
確定! 回上一頁