Everything Is Bits
A computer stores and processes information using just two states — on and off, high and low voltage — represented by the digits 0 and 1. A single such digit is a bit (binary digit); eight bits make a byte. Everything a computer holds — numbers, text, images, sound, instructions — is ultimately a pattern of bits. What a pattern means depends entirely on how it is interpreted.
Numbers are stored in binary (base 2), where each position is a power of 2 rather than a power of 10. Reading right to left, the positions are worth . The binary number therefore equals in decimal.
| Binary | Powers | Decimal |
|---|---|---|
An 8-bit byte can represent distinct values, from to . In general, bits give combinations. Because long binary strings are hard to read, programmers use hexadecimal (base 16, digits – then –), where each hex digit packs exactly 4 bits — so one byte is exactly two hex digits.
Text is encoded by mapping characters to numbers: ASCII uses 7 bits per character (128 symbols), while Unicode extends this to cover every writing system.
Common pitfall: thinking a bit pattern has an inherent meaning. The same byte is the number , the letter in ASCII, or part of a color — the interpretation, not the bits, decides. Always ask how a pattern is being read before deciding what it represents.
An 8-cell binary ruler: each cell labelled with its power of 2 (128 down to 1). A sample byte lights its set bits in accent, and the lit place values drop one by one into a running sum beneath.