C# 用C四舍五入到上述单位

C# 用C四舍五入到上述单位,c#,rounding,C#,Rounding,如何将小数点向上舍入到最接近的整数 i、 e intMath.Roundcount/decimalrows,middpointrounding.AwayFromZeroMath.天花是你的朋友Math.天花是你的朋友 1.2 ---> 2 5.6 ---> 6 79.9 ---> 80 85.01 ---> 86

如何将小数点向上舍入到最接近的整数

i、 e

intMath.Roundcount/decimalrows,middpointrounding.AwayFromZero

Math.天花是你的朋友

Math.天花是你的朋友

1.2 ---> 2
5.6 ---> 6
79.9 ---> 80
85.01 ---> 86