- Math.ceil():向上取舍
- Math.floor():向下取舍
- Math.round():标准取舍
实例
Math.ceil(25.9); //26
Math.ceil(25.5); //26
Math.ceil(25.1); //26
Math.floor(25.9); //25
Math.floor(25.5); //25
Math.floor(25.1); //25
Math.round(25.9); //26
Math.round(25.5); //26
Math.round(25.1); //25