I Have Javascript Function in Which i am comparing 2 value but they are not matching.
function cool() {
debugger;
var ss = 123123123123123123123123123123;
(ss == '123123123123123123123123123123'); // true
}
Which show me ss = 1.2312312312312312e+29
which takes
(1.2312312312312312e+29 == '123123123123123123123123123123')
it do not match
Javascript Function comparing issue
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Dorababu MekaRank #457 · 5.5K reputationPosted Jun 3, 2014, 5:02 AM EDT
http://jsfiddle.net/Yazpj/1576/
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 3, 2014, 8:49 AM EDT