You are on page 1of 10

UNIT 3: BINARY

• Please make sure to copy Slide 6: Binary Addition and Slide 8:


Binary addition example into your exercise books.
• If there are any incomplete notes, please refer to the remaining
slides to complete them.
CONVERTING BINARY TO DENARY

1. Using the place value table – write the binary numbers under the
place values
2. Add all the place value numbers up which have a 1 (Binary digit)
under them.
3. You will get your denary number!
Refer to Pg. 25 - Compute-IT textbook to copy out the example for
binary to denary
CONVERTING DENARY TO BINARY
METHOD 1: DIVIDING BY 2
1. Divide the decimal number by 2.
2. If the number will not divide equally by 2, then round down the
answer to the nearest whole number (integer).
3. Keep a note of the remainder, it should be either 0 or 1.
4. Keep repeating the above steps, dividing each answer by 2, until you
reach zero.
5. Write out all the remainders, from bottom to top. This is your binary
solution.
CONVERTING DENARY TO BINARY
METHOD 2: 178
SUBTRACT/ PLACE VALUE TABLE
1 0 1 1 0 0 1 0

1. The first thing to do is write the place values in their columns.


2. Then take your denary number, in this case, 178.
3. Find the largest place value (binary value) that can be subtracted from the decimal
value without producing a negative number.
4. Write a 1.
5. Subtract the next possible binary bit value from the decimal value.
6. If it doesn’t produce a negative number – write 1
7. If it produces a negative number - write 0.
Note: Do not carry the negative number to the next column
BINARY ADDITION
BINARY ADDITION: 1 + 1 =10
Two binary numbers can be added together in a similar way to adding together two decimal numbers.

In denary:
• When two numbers are added together in denary/decimal, we take the first
number, add the second number to it and get an answer. For example, 1 + 2 = 3.
• In denary/decimal if we add two numbers together in a column and the total is
greater than 9, we have to carry.
In Binary:
• The same applies to binary when the total is greater than 1. (Carry the 1)
• There are four rules that need to be followed when adding two binary numbers
(next slide)
ADDITION RULES FOR BINARY
BINARY ADDITION: EXAMPLE
BITS, NIBBLES, BYTES
BINARY OVERFLOW

Sometimes, when adding two


binary numbers we can end up
with an extra digit that doesn’t
fit.
This is called an overflow error.

You might also like