4.1.4

Binary Arithmetic

Test yourself

Binary Addition

We can add two binary numbers in exactly the same way as denary numbers.

Illustrative background for Adding two digitsIllustrative background for Adding two digits ?? "content

Adding two digits

  • If we add 0 + 0 we get 0.
  • If we add 1 + 0 (or 0 + 1) we get 1.
  • If we add 1 + 1, then we cannot use the symbol 2. So we need to carry the 1 and put 0 in the current place.
Illustrative background for Adding in a third bitIllustrative background for Adding in a third bit ?? "content

Adding in a third bit

  • It might be the case that we have 1 + 1 and also a 1 carried over from the previous column.
  • If this is the case, then we carry the 1 and have 1 left over.
    • So we carry 1 and put 1 in the current place.
Illustrative background for Overflow errorsIllustrative background for Overflow errors ?? "content

Overflow errors

  • Binary numbers are stored as a fixed length.
  • If a number is carried past the last place column, then this is called an overflow error.
  • Overflow errors can lead to inaccurate results and software crashes.

Jump to other topics

1Computational Thinking & Algorithms

2Programming

3Hardware & Software

4Data

5The Internet

6Online Safety & Security

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson