Js语言的奇怪特性

var a = .3 - 2;

console.log(a);

 

a = 0.099999998

而不是0.1,是不是很奇怪?

 

posted on 2017-12-09 11:51  jiahuafu  阅读(303)  评论(0编辑  收藏  举报

导航