js保留4位小数

js保留4位小数

 

var v2_x = Math.round((new_x.x + Number.EPSILON) * 10000) / 10000;

 

 

#################

posted @ 2022-05-29 21:58  西北逍遥  阅读(1446)  评论(0编辑  收藏  举报