Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jamie_ca
on Oct 4, 2020
|
parent
|
context
|
favorite
| on:
NestedText, a nice alternative to JSON, YAML, TOML
It's a Javascript problem. Integer caps out at 9007199254740991 (2
53-1), and after that it's treated as a BigInt. As long as you're working with BigInt literals, it'll be accurate, but when you convert back and forth you can lose precision.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...