取整函数

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