Large numbers erroneously rounded in JavaScript
You’re overflowing the capacity of JavaScript’s number type, see ยง8.5 of the spec for details. Those IDs will need to be strings. IEEE-754 double-precision floating point (the kind of number JavaScript uses) can’t precisely represent all numbers (of course). Famously, 0.1 + 0.2 == 0.3 is false. That can affect whole numbers just like it … Read more