round()函数:4舍6入5成双

round(0.4)=0
round(0.5)=0
round(0.6)=1
round(1.5)=2
round(2.5)=2


这种方法叫 “四舍 六入 五成双” ,是为了避免在大量数据统计时舍入误差引起整体的偏移.

posted @ 2023-12-25 14:27  中年二班  阅读(108)  评论(0编辑  收藏  举报