Js语言的奇怪特性

var a = .3 - 2;

console.log(a);

a = 0.099999998

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

原文地址:https://www.cnblogs.com/jiahuafu/p/8011051.html