Math中的round

Math.round(-1.4) = -1;

Math.round(-1.5) = -1;

Math.round(-1.6) = -2;

4舍5舍6入

原文地址:https://www.cnblogs.com/toomucherror/p/10472786.html