//返回大于等于指定数字的最小整数
double a = Math.Ceiling(0.000);//0;
double b = Math.Ceiling(0.400);//1;
double c = Math.Ceiling(0.600);//1;
double d = Math.Ceiling(1.000);//1;
double f = Math.Ceiling(1.400);//0;
//返回小于或等于指定数字的最大整数
double g = Math.Ceiling(0.000);//1;
double h = Math.Ceiling(0.400);//1;
double i = Math.Ceiling(0.600);//1;
double j = Math.Ceiling(1.000);//1;
double k = Math.Ceiling(1.100);//2;
//返回余数
double x = Math.IEEERemainder(5.0, 3.0);//-1;
//求组数,求分组数,即将物品分组,加一减一原则
int v = (6 - 1) / 5 + 1;// 2
本文作者:网友 来源:网络收集
CIO之家 www.ciozj.com 微信公众号:imciow