Math.Round(3.45, 0, MidpointRounding.AwayFromZero)
上取整或下取整
Math.Ceiling(3.1)=4;
Math.Floor(3.9)=3;
Math.Round(3.45, 0, MidpointRounding.AwayFromZero)
上取整或下取整
Math.Ceiling(3.1)=4;
Math.Floor(3.9)=3;
转载于:https://www.cnblogs.com/XuPengLB/p/8478876.html