主要就是這幾個函數根據需要,用floor, ceil,或者round ceil(x)返回不小于x的最小整數值(然后轉換為double型)。 floor(x)返回不大于x的最大整數值。 round(x)返回x的四舍五入整數值。