标签: c#
可能重复: How to Round Up The Result Of Integer Division
double d1=11, double d2=2 int i=d1/d2;
答案 0 :(得分:11)
int i = (int)Math.Ceiling(d1/d2);