C++里面的取整函数

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

也能够用数据类型强制转换,那要看数据的大小   
  能够用int()或long()   
  比方int(104.23)   =   104
posted @ 2014-08-02 10:32  mfrbuaa  阅读(427)  评论(0编辑  收藏  举报