整数计算向上取整

用整型,直接

int a;

a=a+(a+1)/2;

相当于

float a;

a*1.5=a;

ceil(a);

posted on 2010-12-10 21:39  yming0221  阅读(165)  评论(0)    收藏  举报

导航