Math round四舍五入 ceil向上取整 floor向下取整
正数:Math.round(11.46)=11
负数:Math.round(-11.46)=-11
Math.ceil(11.46)=Math.ceil(11.68)=Math.ceil(11.5)=12
Math.ceil(-11.46)=Math.ceil(-11.68)=Math.ceil(-11.5)=-11
Math.floor(11.46)=Math.floor(11.68)=Math.floor(11.5)=11
以上信息来自网络