c++取小数整数部分 #include<math.h> double ceil(double x) //向上取整 double floor(double x) //向下取整 向上取整,取比x大的第一个整数值向下取整,取比x小的第一个整数值