取整函数

#include<math.h> 
 ceil(double x) //向上取整 
 
 floor(double x) //向下取整
posted @ 2014-07-17 14:34  gongpixin  阅读(240)  评论(0)    收藏  举报