-8

I already know that the maximum integers for ranges higher than 24-bit (16 777 216) will very likely exceed 1 000 000 000, so, what is the maximum 64 bit integer? It is larger than 10 bilion?

3
  • 5
    This is more of a math.stackexchange.com question, surely? Commented Dec 26, 2019 at 17:58
  • 2
    This is in no way related to retro computing. If at all it's about computing in general or more fitting math, as it's about numeric systems. Commented Dec 26, 2019 at 18:12
  • 3
    Have you heard of Google? Type "maximum 64 bit integer" into google and it's the first answer returned, you don't even have to click through yo a page. Commented Dec 27, 2019 at 14:58

1 Answer 1

5

Ten billion can be represented in 34 bits, never mind 64. The hexadecimal representation (in which each digit contains four bits) is 0x2540BE400.

The maximum (unsigned) 64-bit integer is 18446744073709551615. This is (2^64)-1, which is essentially the square of (2^32)-1, which is "about" 4 billion.

In general, you can estimate that every 10 bits represents 3 decimal digits. For 64 bits, that means a good estimate would be 16 (from the 4 leftover bits) followed by 18 zeroes (6*3). As you can see, this gets reasonably close to the true value.

3
  • 3
    Downvote because: should not have been answered - obviously shows signs of NO research having been done by OP since in this case "research" would have been the obvious google query which would have answered the low-quality question. Commented Dec 27, 2019 at 15:01
  • 2
    Fun fact @davidbak, this question is what you get when you google it. Commented Feb 8, 2021 at 19:26
  • 2
    @BrandonDyer - Stack Exchange is a Google attractor. Commented Feb 8, 2021 at 19:36

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.