JS的四舍五入

//Math.ceil 向上取整
//Math.floor 向下取整
//Math.round 四舍五入
//parseInt 丢弃小数部分,保留整数部分

原文地址:https://www.cnblogs.com/xiaomingliu/p/8427704.html