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
1
u/TransientVoltage409 May 26 '21
I'm not sure we ever decided if that was serious. Programmer humor being what it is, it's common to segue directly from the mundane to the iffy to the absurd in one continuous motion: if a bit is part of a nibble is part of a byte, it stands to reason that many bytes compose a playte (16 bits) or a dynner (32 bits). It's only by chance that those didn't enter into common usage the way 'byte' did.