1、向上进位取整。Math.Ceiling
例如: Math.Ceiling(32.6)=33; Math.Ceiling(32.0)=32;
2、向下舍位取整。Math.Floor
例如: Math.Floor(32.6)=32;
3、取指定位数的小数。Math.Round
例如:Math.Round(36.236,2)=36.24; Math.Round(36.232,2)=36.23;
posted on 2017-01-12 17:54 Frank- 阅读(190) 评论(0) 编辑 收藏 举报