0

Why?

parseInt((10152174800132377).toString(16),16) == 10152174800132376

Where the number of lost?

phil652
  • 1,484
  • 1
  • 23
  • 48
Pavel Taran
  • 37
  • 1
  • 7
  • WHY parseInt("10152174800132377") == 10152174800132376 – Pavel Taran May 25 '15 at 12:22
  • 1
    [See this question for more information.](http://stackoverflow.com/questions/307179/what-is-javascripts-highest-integer-value-that-a-number-can-go-to-without-losin) – Pointy May 25 '15 at 12:24

1 Answers1

4

The number is lost, as it is to large to be representable exactly in JavaScript's Number type (it is a IEEE 754 double):

$ node
> 10152174800132377
10152174800132376
TimWolla
  • 31,849
  • 8
  • 63
  • 96