四舍五入 :先加 0.5, 再向下取整

math.floor(n+0.5)

原文地址:https://www.cnblogs.com/rollingyouandme/p/14693058.html