Math的round、ceil、floor函数

Math.round:如果参数是小数,则求本身的四舍五入。
Math.ceil:如果参数是小数,则求最小的整数但不小于本身.
Math.floor:如果参数是小数,则求最大的整数但不大于本身.    
posted @ 2012-07-28 11:11  GreyWolf  阅读(166)  评论(0编辑  收藏  举报