Y10 01 P4 - Slides
Y10 01 P4 - Slides
Y10 01 P4 - Slides
Learning objectives
In this lesson students will learn to:
For more detail on this topic, and additional student activities, refer to
Topic 2 of the student book.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
Adding in binary
One of the most common operations that you will need to carry out is
adding binary numbers together.
The method you will use is the same method you may have been
taught to add denary numbers when you were younger: column
addition.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
Golden rules
There are 4 rules to remember. If you always apply them, you’ll get
your binary additions right every time.
0+0=0
0+1=1
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
Addition
1 0001
4+ 0 1 0 0+
5 0101
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
Overflow
1 1 0 0 0 1 1 1
1 1 1 1 0 1 0 0 +
1 0 1 1 1 0 1 1
1 1
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
Overflow
What you’ve just seen is called overflow.
It means the result of the calculation is too large for the space allocated
(in this case 1 byte).
The way a computer handles this will depend on how it’s setup.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
In programming…
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-01-P4: Binary arithmetic
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.