js中0.1+0.2 与0.3的对比

 

Math.abs(0.1+0.2-0.3)<=Number.EPSILON

  

posted @ 2019-07-30 09:24  qixianchuan  阅读(237)  评论(0)    收藏  举报