c#四舍五入取整

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