Binary Number System Basics

Binary Basics

  • Computers rely on millions of micro-transistors with only two states: on / off → represented by 11 / 00.
  • Binary is a base-22 number system; every value stored, transmitted, or processed is reduced to sequences of 00s and 11s.

Bits & Bytes

  • Bit: single binary digit.
  • Byte: 88 bits → standard unit for data (e.g.
    Byte=8bits<em>b</em>7b<em>6b</em>5b<em>4b</em>3b<em>2b</em>1b0\text{Byte}=\underbrace{8\,\text{bits}}<em>{b</em>7\,b<em>6\,b</em>5\,b<em>4\,b</em>3\,b<em>2\,b</em>1\,b_0}).

Place Values in Binary (one byte)

  • Powers of 22, right → left: 20=1,  21=2,  22=4,  23=8,  24=16,  25=32,  26=64,  27=1282^0=1,\;2^1=2,\;2^2=4,\;2^3=8,\;2^4=16,\;2^5=32,\;2^6=64,\;2^7=128.

Denary (Decimal) vs Binary

  • Decimal uses powers of 1010; binary uses powers of 22.
  • Example conversion: 10011010<em>2=128+16+8+2=154</em>1010011010<em>2 = 128+16+8+2 = 154</em>{10}.

Converting Binary → Denary

  • Write the value under each 11 bit, then add.
  • Quick rule: sum of all powers of 22 where bit = 11.

Converting Denary → Binary

Method 1 – Place-value / “coin” subtraction

  • Start with highest power of 22 ≤ number.
  • Subtract, mark 11; continue until remainder 00.

Method 2 – Successive division by 22

  • Repeatedly divide the number by 22, recording remainders.
  • Read remainders bottom-to-top to form binary.

Example (both methods):

  • Convert 207<em>10207<em>{10}. • Largest power 128128 → remainder 7979. • Next 6464 → remainder 1515. • 8,4,2,18,4,2,1 all fit. → 207</em>10=110011112207</em>{10}=11001111_2.

Key Takeaways

  • Binary’s simplicity matches transistor states, providing speed & reliability.
  • 1 bit = 2 states, 8 bits = 1 byte (256 possible values 0!!2550!\text{–}!255).
  • Mastery of place values and two conversion methods covers all basic exam tasks.