Binary Subtraction Ex1 Flashcards
Introduction to Binary Subtraction
Binary Subtraction
This exercise will describe how to subtract using binary (base 2). First thing I must offer is this, binary subtraction is very easy!
There are a couple of steps to remember, it’s not rocket science – but it is a fundamental part of computer science!
After about 3 exercises you’ll have cracked this! If not, keep going till you do!
We’ll start with a simple 6 – 3 which the answer in decimal (base 10) is clearly 3
Note: – Always lay out your work; this is how you get marks!
Note: In assessments and exams all workings must be shown – so get the habit
110 – The first number is known as the first term, 6 in decimal (base 10)
011 – The second number is known as the second term, 3 in decimal (base 10)
Write the numbers as shown
110 - 1st term
011 - 2nd term
Now invert the second term to get
100 - 2nd term inverted is 100
Now add a 1 to the 2nd term to get 101
101 - 2nd term
110 - 1st term brought down for demo purposes
Now add them together to get 1011
Drop the most significant bit (leftmost bit) and the answer is: 011 – 3
Simples!
Now try these and you must show the workings
Ex2
110
- 010
Tbc
Ex3
110
-100
Tbc
Ex 4
1000
- 0100
Tbc
Ex 5
1000 1100
-0111 0001
Tbc
Ex 6
1000 1001
-0111 0001
Tbc
Ex 7
1010 1100
-0111 0001
Tbc
Ex 8
1101 1101
-0011 1111
Tbc