A bit is the smallest piece of information in a computer, a single value storing either
A byte is a unit of digital information that consists of
of those bits.
Here's a single byte of information:
Here are three more bytes of information:
From bits to bytes
Conversion between bits and bytes is a simple calculation: divide by
to convert from bits to bytes or multiply by to convert from bytes to bits. Try it yourself!
Check your understanding
How many bytes long is this binary sequence?
Check your understanding
How many bits are in
bytes of information?
What is so special about
bits that it deserves its own name?
Computers do process all data as bits, but they prefer to process bits in byte-sized groupings. Or to put it another way: a byte is how much a computer likes to "bite" at once.
The byte is also the smallest addressable unit of memory in most modern computers. A computer with byte-addressable memory can not store an individual piece of data that is smaller than a byte.
What's in a byte?
A byte represents different types of information depending on the context. It might represent a number, a letter, or a program instruction. It might even represent part of an audio recording or a pixel in an image.
We'll explore how computers can use bits and bytes to represent all types of information in this unit.
Want to join the conversation?
- What if we have a number of bits that are non-divisible by 8? Is that possible?(24 votes)
- And half a bit is a nibble lol(13 votes)
- How do quantum computers work with bits and bytes?(7 votes)
- Quantum computers do not work with traditional bits and bytes; rather, quantum computing uses qubits, which stems from the phrase "quantum bit."
Providing an in-depth explanation of qubit operation would be difficult to do in this comment, and I am certainly no expert on the subject matter. Here are two resources to develop a better understanding of the subject:
- if bits were a thing you can hold what would it look like?(2 votes)
- We sort of already have that. Take a coin for example, it could either have heads facing up, or tails. So it has two possible states, which is what a bit is. However, a coin stores a bit, rather than actually being a bit. I don't exactly know what bits themself would look like, since they're really just an idea, rather than an actual object.(17 votes)
- What does it mean when you download software and it asks for 32 or 64 bit/byte file type?(5 votes)
- 32 and 64 are referring to the number of bits that the CPU can use at once. Most modern computers now use 64 bits which allows them to work faster and take advantage of larger amounts of memory. Usually, 32-bit programs will work on a 64-bit machine (though not always). However, 64-bit programs cannot be used on 32-bit machines.(11 votes)
- "At12:18, what does the concept of byte-addressable imply? A computer should be able to store an individual piece of information, being made of wires?"(5 votes)
- A byte is a grouping of eight bits. Byte-addressable means that the computer stores data in bytes instead of single bits for example.
Wires are used for transporting information, computers generally don't use them as a storage device.(7 votes)
- why everyone can say AP CS is easy. I obviously saw them really complex-.-(4 votes)
- Took both AP CSA and CSP, got decent scores, throughout my high school.
Relatively, its not really as complex. AP CSP is basically basic programming understanding and what an IT Person would know. You really need to like computers or you will actually get bored in the course, as its really complex.
Additionally, look into youtube for further videos on that. As someone's who studying in a STEM Course, a great way to find time is to actually understand the concept behind everything, from abstract to the physical.(7 votes)
- Why bytes?Like why is it 8 and not like like 10 wouldn't that make it easier.(3 votes)
- In our base 10 system, 10 is a place value represented by 10^1. In binary, however, it's in base 2, so 8 is a place value represented by 2^3.
It's 8, because 8 is close to our friend 10.(8 votes)
- Is there a limit to the binary number system? MAX values?(4 votes)