取余

6 % 2

取整

抛弃整数

parseInt(7/3)

向上取整(天花板嘛,代表上)

Math.ceil(7/3)

向下取整(地板嘛,代表下)

Math.floor(7/3)

四舍五入

Math.round(7/3)