摘要: const EPSILON = Math.pow(2, -53); //1.1102230246251565e-16 function epsEqu(x,y) { return Math.abs(x - y) < EPSILON; } epsEqu(0.1+0.2, 0.3) //true 阅读全文
posted @ 2017-02-11 23:32 Coca-code 阅读(122) 评论(0) 推荐(0)