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;
原文:http://www.cnblogs.com/wu-peng/p/6279241.html