C# 三种取整方式

Math.Round:四舍六入五取整

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

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

posted @ 2017-07-28 11:57  fifirain  阅读(827)  评论(0)    收藏  举报