Why are there 1024 bytes in a kilobyte? (instead of 1000)

Here is a good brainteaser when teaching binary code…

Remember: Computers can only work with binary code.

Computers don’t really like the number 1000 because in binary it’s not that straightforward:

binary1000The binary code for 1000 is 1111101000

However computers do like the number 1024 because its binary code is 10000000000.

Binary1024That’s why there are 1024 Bytes in a KB, 1024 KB in a MB and so on…

 

Share Button
Posted in Computer Science, Computing Concepts Tagged with: ,

Our Latest Book