2013年4月27日
摘要: ceil():将小数部分一律向整数部分进位。如:Math.ceil(12.2)//返回13Math.ceil(12.7)//返回13Math.ceil(12.0)// 返回12floor():一律舍去,仅保留整数。如:Math.floor(12.2)// 返回12Math.floor(12.7)//返回12Math.floor(12.0)//返回12round():进行四舍五入如:Math.round(12.2)// 返回12Math.round(12.7)//返回13Math.round(12.0)//返回12 阅读全文
posted @ 2013-04-27 00:00 zhengbeibei 阅读(3607) 评论(0) 推荐(0) 编辑