#include<math.h>   
double ceil(double x) //向上取整
double floor(double x) //向下取整

向上取整,取比x大的第一个整数值
向下取整,取比x小的第一个整数值

相关文章: