DEV Community

Discussion on: Explain BigInt Like I'm Five

andrewlucker profile image
Andrew Lucker

normal 64 bit int is between -9223372036854775807 and 9223372036854775807. Larger values wrap around or explode etc.

64 bit float is same size but has "gaps" between larger numbers.

BigInt just starts taking up more memory, but otherwise can represent large integers without any loss of information.