标签:整数 OLE class 返回 line write floor int round
double result1 = Math.Floor(0.3); Console.WriteLine(result1);//result1显示0 double result2 = Math.Floor(0.5); Console.WriteLine(result2);//result2显示0 double result3 = Math.Floor(0.6); Console.WriteLine(result3);//result3显示0
round方法:
static long round(double a)
此方法返回的参数最接近的long.
static int round(float a)
此方法返回的参数最接近的整数.
标签:整数 OLE class 返回 line write floor int round
原文地址:https://www.cnblogs.com/cxxiao/p/12560521.html