Binary Numbers
Binary Numbers
OBJECTIVE
1. 10102
2. 10101112
3. 11110112
CONVERSION OF
BINARY NUMBERS
DECIMAL – BINARY NUMBER
Method 1 : Subtraction Method
List down all powers of 2.
𝟐𝟖 𝟐𝟕 𝟐𝟔 𝟐𝟓 𝟐𝟒 𝟐𝟑 𝟐𝟐 𝟐𝟏 𝟐𝟎
256 128 64 32 16 8 4 2 1
Subtract the highest power of two that is less than the given number until the
difference reaches 0.
CONVERSION OF
BINARY NUMBERS
DECIMAL – BINARY NUMBER
Method 1 : Subtraction Method 𝟐𝟓 𝟐𝟒 𝟐𝟑 𝟐𝟐 𝟐𝟏 𝟐𝟎
Example: 5810
32 16 8 4 2 1
58 – 32 = 26
26 – 16 = 10
10 – 8 = 2 1 1 1 0 1 0
2–2=0
3÷2=1 1
Therefore 58 in binary number is 1110102. 1÷2=0 1
Example
Convert the following to Binary Number
1. 52
2. 101
3. 202
OPERATIONS
OF
BINARY NUMBERS
Addition of
Binary Numbers
1
0 1 1
+ 0 + 0 + 1
0 1 1 0
Addition of
Binary Numbers
Example: Add 10012 and 11102
1 CHECK:
1 1 1
1 0 1 1 0 1
+ 1 0 0 1 1 0
1 0 1 0 0 1 1
ANSWER: 10100112
Addition of
Binary Numbers
Example: Add 1111112 and 1011112
1 1 1 1 1 1
1 1 1 1 1 1
+ 1 0 1 1 1 1
1 1 0 1 1 1 0
ANSWER: 11011102
EXAMPLES
0 10 CHECK:
0 10 10
1 0 1 1 0 1
- 1 0 0 1 1 0
0 0 0 1 1 1
ANSWER: 1112
Subtraction of
Binary Numbers
Example: Subtract 1100112 and 1011112
1
0 10 10
1 1 0 0 1 1
- 1 0 1 1 1 1
1 0 0
ANSWER: 1002
EXAMPLES
0 1 1
× 0 × 0 × 1
0 0 1
Multiplication of
Binary Numbers
Example: Multiply 10012 and 11102
CHECK:
1 0 0 1
10012 = 1(8) + 0(4) + 0(2) + 1(1) = 9
× 1 1 1 0
11102 = 1(8) + 1(4) + 1(2) + 0(1) = 14
0 0 0 0
1 0 0 1 Therefore, 1111102 must be 126.
1 0 0 1 = 1(64)+1(32)+1(16)+1(8)+1(4)+1(2)+0(1)
1 0 0 1 = 126
1 1 1 1 1 1 0
Multiplication of
Binary Numbers
Example: Multiply 101012 and 101102
1 0 1 0 1
× 1 0 1 1 0
1 0 0 0 0 0
1 1 0 1 0 1
1 1 0 1 0 1
0 0 0 0 0 ANSWER: 1110011102
1 0 1 0 1
1 1 1 0 0 1 1 1 0
Multiplication of
Binary Numbers
Example: Multiply 10101 2 and 101102
1 0 0 1 0 1
× 1
1 0 1 1
1 1 0 0 1 0 1
1
1 0 0 1 0 1 ANSWER: 1100101112
0 0 0 0 0 0
1 0 0 1 0 1
1 1 0 0 1 0 1 1 1
EXAMPLES
2. 57910
3. 1011102
4. 11110012
5. 100011102
Exercises
Solve the following operations of binary numbers: