C#中数字的四舍五入与只取整

Math.Round(3.5,0)=4;

Math.Ceiling(3.1)=4;

Math.Floor(3.9)=3;


原文地址:https://www.cnblogs.com/yeagen/p/2249924.html