Binary addition and binary–decimal conversion

플레이하며 배우기

이 문제들을 풀어 에너지를 얻은 뒤 낚시하고 탐험하세요. 계정이 필요 없어요.

교육자를 위해: Binary addition and binary–decimal conversion(KS3 Computing, Computer Systems)을(를) 위한 바로 쓸 수 있는 수업 슬라이드, 복습 노트, 다이어그램 — 수업에 사용하거나, 학습자들이 실시간 게임으로 즐기는 인터랙티브 클래스 활동으로 진행하세요.

수업 노트

Binary Numbers

  • Binary is a base-2 numeral system using only two digits: 0 and 1.
  • Each binary digit is called a bit.
  • In binary, each position represents a power of 2, starting from 20 on the right.
  • Binary is used by computers because it is easy to implement with electronic circuits.

Computers use binary because a switch has two reliable states, easy to detect and hard to confuse.

Computers use binary because a switch has two reliable states, easy to detect and hard to confuse.

Converting Binary to Decimal

  • To convert binary to decimal, write the binary number with place values (powers of 2) above each bit.
  • Multiply each bit by its place value (0 or 1 times the power of 2).
  • Add all the products together to get the decimal value.
  • Example: 1011₂ = 1×8 + 0×4 + 1×2 + 1×1 = 11₁₀.

Converting Decimal to Binary

  • One method is division by 2: repeatedly divide the decimal number by 2, recording the remainder.
  • Read the remainders from bottom to top to get the binary equivalent.
  • Example: 13₁₀ → 13÷2=6 r1, 6÷2=3 r0, 3÷2=1 r1, 1÷2=0 r1 → 1101₂.
  • Another method is to subtract the largest power of 2 that fits, and mark that bit as 1.

Binary Addition

  • Binary addition follows rules similar to decimal, but with only 0 and 1.
  • Rules: 0+0=0, 0+1=1, 1+0=1, 1+1=0 with a carry of 1.
  • When adding multiple bits, include any carry from the previous column.
  • Example: 1011₂ + 1101₂ = 11000₂.

Carrying in Binary Addition

  • A carry occurs when the sum in a column is 2 or more.
  • In binary, 1+1=2, so write 0 and carry 1 to the next column.
  • If a carry is added to an existing 1, the sum becomes 2 again, so write 0 and carry 1 again.
  • Carries can propagate through multiple columns.

Overflow

  • Overflow happens when the result of binary addition is too large to fit in the fixed number of bits.
  • For example, adding two 4-bit numbers may produce a 5-bit result.
  • If only 4 bits are allowed, the extra bit is lost, causing an incorrect result.
  • Overflow can be detected when there is a carry out of the most significant bit.

Example: Binary Addition with Carries

  • Add 0111₂ (7) and 0101₂ (5) using 4 bits.
  • Column 1 (20): 1+1=0 carry 1.
  • Column 2 (21): 1+0+carry1 = 0 carry 1.
  • Column 3 (22): 1+1+carry1 = 1 carry 1.
  • Column 4 (23): 0+0+carry1 = 1, no carry out.
  • Result: 1100₂ (12). No overflow.

Example: Overflow in Binary Addition

  • Add 1001₂ (9) and 0111₂ (7) using 4 bits.
  • Column 1: 1+1=0 carry 1.
  • Column 2: 0+1+carry1 = 0 carry 1.
  • Column 3: 0+1+carry1 = 0 carry 1.
  • Column 4: 1+0+carry1 = 0 carry 1.
  • There is a carry out of the most significant bit, so overflow occurs; the 4-bit result 0000₂ is incorrect (should be 16).

Practical Applications

  • Binary addition is fundamental to computer arithmetic.
  • Overflow detection is important in programming and hardware design.
  • Understanding binary–decimal conversion helps in debugging and data representation.
  • These skills are essential for working with low-level computer systems.

In an 8-bit number each position is a power of two, from 128 down to 1.

Binary addition works column by column from the right, carrying whenever a column totals two or more.

Fixed-width storage has a maximum range; a result needing more bits than are available overflows.

슬라이드

Sign up free to view the lesson slides

Step through every slide for this topic — plus flashcards and revision notes — with a free account.

연습 문제

무료 미리 보기 — 15개 중 8개 문제. 가입하면 전부 볼 수 있어요.
  1. 1.A binary digit is also known as a bit.

    Easy

    True or false?

  2. 2.What is the decimal value of the binary number 1010?

    Easy
    • A8
    • B10
    • C12
    • D14
  3. 3.Complete the sentence.

    Easy

    The base-2 numeral system uses only the digits ____ and ____.

  4. 4.Convert the decimal number 13 to binary. Enter your answer as a binary number (e.g. 101).

    Easy
  5. 5.What is the result of adding the binary numbers 0110 and 0011?

    Easy
    • A1001
    • B1010
    • C1100
    • D0111
  6. 6.What is the binary representation of the decimal number 25?

    Medium
  7. 7.What is the decimal value of the binary number 1111?

    Medium
    • A14
    • B15
    • C16
    • D17
  8. 8.When adding two 4-bit binary numbers, if the result requires 5 bits, an overflow has occurred.

    Medium

    True or false?

Unlock all 15 questions, flashcards & more

무료 계정을 만들어 이 주제의 모든 문제, 슬라이드, 플래시카드, 복습 노트를 확인하세요.

기출 문제

이 주제의 기출 문제 연습이 곧 나와요.
곧 출시