C++里面的取整函数

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

也能够用数据类型强制转换,那要看数据的大小   
  能够用int()或long()   
  比方int(104.23)   =   104
posted @ 2015-02-14 18:39  blfshiye  阅读(294)  评论(0编辑  收藏  举报