三个函数可以完成取整操作:
Math.ceil();
Math.floor();
Math.round();
对xxxx.xx型数据分别进行上述三个操作:
Math.ceil()和Math.floor()处理结果为xxxx.0;
Math.round()处理结果为xxxx;
三个函数可以完成取整操作:
Math.ceil();
Math.floor();
Math.round();
对xxxx.xx型数据分别进行上述三个操作:
Math.ceil()和Math.floor()处理结果为xxxx.0;
Math.round()处理结果为xxxx;