Round是四捨五入的。。。Ceiling是向上取整。。float是向下取整 ... 下麵來介紹將小數值捨入為整數的幾個方法:Math.ceil()、Math.floor()和Math.round()。 這三個方法分别遵循下列捨入規則:
www.jb51.net