logoalt Hacker News

shaknatoday at 5:53 AM2 repliesview on HN

But frustratingly, a JS BigInt is nothing like a BigInt in any other language.

In JS - BigInt is 64bit integer.

In anything else - BigInt is a arbitrarily large integer.


Replies

anematodetoday at 6:02 AM

Hm? JavaScript BigInts are arbitrary precision, and you need to use methods like BigInt.asIntN(64, a) to convert them to 64 bits

show 1 reply
Etherytetoday at 6:50 AM

This is simply not true? Or maybe I misunderstand what you mean?