ceil()方法就表示向上取整,Math.ceil(12.3)的结果是13,Math.ceil(-12.7)的结果-12;
floor()方法就表示向下取整,Math.floor(12.7)的结果是12,Math.floor(-12.3)的结果-13;
round()方法表示“四舍五入”,Math.round(12.3)的结果是12,Math.round(-12.7)的结果-13;
ceil()方法就表示向上取整,Math.ceil(12.3)的结果是13,Math.ceil(-12.7)的结果-12;
floor()方法就表示向下取整,Math.floor(12.7)的结果是12,Math.floor(-12.3)的结果-13;
round()方法表示“四舍五入”,Math.round(12.3)的结果是12,Math.round(-12.7)的结果-13;