Math.Round 四舍六入五取偶
double result1 = Math.Round(0.3); Console.WriteLine(result1);//result1显示0 double result2 = Math.Round(1.5); Console.WriteLine(result2);//result2显示2
double result = Math.Round(0.5); Console.WriteLine(result);//result显示0 double result3 = Math.Round(0.6); Console.WriteLine(result3);//result1显示1 Console.Read();