C#除法的取整

Math.Round:四舍六入五取整

Math.Ceiling:向上取整,只要有小数都加1

Math.Floor:向下取整,老是舍去小数

相关文章
相关标签/搜索