Math.ceil(double);中传入的值为double,如果传入int 是无法向上取整的。 eg: Math.ceil(1/2)=0 因为1/2对于计算机来说为0,需要1.0/2=0.5才会取整为1