0
How does this work?
8 ответов
+ 3
My english isnt good enough to explain it, but check this one out
http://blog.vjeux.com/2010/javascript/javascript-max_int-number-limits.html
+ 3
Divya Mohan its rounding problem. Js store Number in floating point, check the article i linked
+ 2
Just check this
Var b = 9007199254740993
Console.log(b);
It still print 9007199254740992
I think it's a bug of sololearn with such a big number
+ 2
Divya Mohan it's not a bug the maximum safe integer is 900719925470992 ,but logging out 900719925470992+2 works unlike +1
+ 1
Are you taking about Math.pow() ??
+ 1
Divya Mohan check the output for these two lines
console.log(x);
console.log(x+1);
+ 1
Ooo
Thanks Rei
I learn something new here.
And sorry to sololearn 🙏😊
I think I might also be due to sololearn.
+ 1
Rei thanks a lot ,I didn't understand all of that ,those significant and exponents but it does have an explanation about what I wanted to know