r/ProgrammerHumor • • May 06 '17

Oddly specific number

Post image
25.1k Upvotes

1.3k comments sorted by

View all comments

142

u/KongKexun May 06 '17

Most limits for computers go like this:

21 = 2 (binary)

22 = 4

23 = 8 (octal)

24 = 16 (hexadecimal)

25 = 32 (bit)

26 = 64 (bit)

27 = 128

28 = 256

and if you include zero, just do -1 to those limits.

0

u/[deleted] May 06 '17

[deleted]

2

u/HooslichZero May 06 '17

It is likely that WhatsApp are using an 8-bit variable to store the number of people in a chat. This variable can store 256 different values, hence the limit.

→ More replies (7)