r/AskComputerScience • u/coffee-mugz • May 26 '21
Why does a kilobyte = 1024?
Hoping for some help and want to say thanks in advance. I’m having trouble getting this and I’ve read several sites that all say it’s because computers operate in binary and 210 = 1024, but this doesn’t make sense to me.
Here’s what I think are true statements:
1) A bit is the fundamental unit of a computer and it can either be a 0 or a 1.
2) A byte is 8 bits.
Why then can’t 1 kilobyte be 1,000 bytes or 8,000 bits?
Am I thinking about 210 wrong? Doesn’t 210 just represents 10 bits? Each bit has two options and you have 10 of them so 210 combinations. I suspect that’s where I’ve got my misconception but I can’t straighten it out
View all comments
Show parent comment
6
u/UserNotAvailable May 26 '21 edited May 26 '21
Point of history? convention? not sure what's the right one.
Kibibytes have only existed since 1998, whereas before kilobyte was a very common term for 1024 bytes. While I understand the problem, I still feel it's weird to try and redefine a very common term, especially since the basis of the whole system isn't decimal. It's a bit like defining kilo tablespoons or deca ounces.
There is a similar but less problematic confusion in circuit board design where
milsis used to refer to mili inches = thousands of an inch, and mm are also often used.But more than all of this I'm still salty that I don't get to use
nibble(4 bits, a little byte), often enough....