忽然用到一脸懵逼。太久不用了,做个标记

mark

有float,向上取整:Math.ceil() //只要有小数都+1
向下取整:Math.floor() //不取小数
四舍五入:Math.round() //四舍五入