Post APAlrulNSTNdlZQt5k by 101101000@qoto.org
 (DIR) More posts by 101101000@qoto.org
 (DIR) Post #AP8XNONoXDZlRZE21Q by tuxicoman@social.jesuislibre.net
       2022-10-31T19:56:56Z
       
       0 likes, 0 repeats
       
       #JavaScript  integers are only accurate up to 15 digits:In JavaScript, all numbers are stored in a 64-bit floating-point format (IEEE 754 standard).With this standard, large integer cannot be exactly represented and will be rounded.How this langage managed to reach software production???
       
 (DIR) Post #APAlrulNSTNdlZQt5k by 101101000@qoto.org
       2022-11-01T21:48:43Z
       
       0 likes, 0 repeats
       
       @tuxicoman> With this standard,Correct on the fact that this is, indeed, part of the specification.> large integer cannot be exactly represented and will be rounded.That's not quite right (though you might be aware of that). It's simply that you cannot represent *every* integer above Number.MAX_SAFE_INTEGER (or below its negative counterpart) as a Number primitive.The good news is that you can use #BigInt for that.As to why it's like that: #JavaScript was designed to very tight constraints. It did meet those constraints while still being a usable language, at least for the purpose it was originally designed (and IMO, well beyond).Provided that you're familiar with its (evolving) specification, JavaScript holds very few surprises, unlike other languages that suck simply because they weren't thought through properly.
       
 (DIR) Post #APAmp8yoFDxkwZxSpU by tuxicoman@social.jesuislibre.net
       2022-11-01T21:59:27Z
       
       0 likes, 0 repeats
       
       @101101000 very few?Compared to Python I found a lot....