It’s the maximum value for a 54-bit twos complement integer.Weird number of bits but ok.
It’s the maximum value for a 54-bit twos complement integer.Weird number of bits but ok. It's actually the maximum number achievable while maintaining integer precision in the standard IEEE 754 double precision floating point encoding: 1 sign bit, 11 exponent bits, 53 mantissa bits. So at a low level gold is likely stored as a double precision floating point number with a fixed exponent of 0, though there probably is a higher level data type that implements that behind the scenesFor another example open up your browser's console and run console.log(Number.MAX_SAFE_INTEGER) to see a familiar value