Digital Electronics - Number System PDF
Digital Electronics - Number System PDF
ELECTRONICS
NUMBER SYSTEM
Quick Game!
Word Search
BINARY HEXADECIMAL
Binary to Octal
• Group into 3's starting at least significant symbol (if the
number of bits is not evenly divisible by 3, then add 0's at
the most significant end)
e.g.: a. (1010101)2 to ( )8
(1010101)2 = (125 )8
Binary to Octal
• Group into 3's starting at least significant symbol (if the
number of bits is not evenly divisible by 3, then add 0's at
the most significant end)
b. (1 0 1 1 0 1 1 1)2 to ( )8
(1 0 1 1 0 1 1 1)2 = (267 )8
Binary to Octal
c. (0 1 1 0 1 1 0 0)2 to ( )8
Octal to Binary
•For each of the Octal digit write its binary equivalent.
e.g.: a. (257)8 to ( )2
2 5 7
3 5
0 1 1 1 0 1
c. (643)8 to ( )2
Binary to Hexadecimal
• Group into 4's starting at least significant symbol (if the
number of bits is not evenly divisible by 4, then add 0's at
the most significant end)
1010 1001
10 9
A 9
(10101001)2 = (A9)16
Binary to Hexadecimal
c. (01101100)2 to ( )16
Hexadecimal to Binary
• For each of the Hex digit write its binary equivalent (use 4
bits to represent).
e.g.: a. (25A0)16 to ( )2
2 5 A 0
0010 0101 1010 0000
(25A0)16 = (0010 0101 1010 0000)2
or
(25A0)16 = (10 0101 1010 0000)2
Hexadecimal to Binary
Try This! (Earning Points: 2)
b. (A2E)16 to ( )2
Octal to Hexadecimal
Steps:
1. Convert octal number to its binary equivalent.
2. Convert binary number to its hexadecimal equivalent.
1 9 13 . 5 12
Cont.
e.g.: a. (635.27)8 to ( )16
6 3 5 . 2 7
110 011 101 . 010 111
000 00
0001 1001 1101 . 0101 1100
1 9 13 . 5 12
e.g.: a. (A3B.7)16 to ( )8
A 3 B . 7
10 3 11 . 7
1010 0011 1011 . 0111 00
(A3B)16 = (5073.34)8
Hexadecimal to Octal
e.g.: b. (B5A)16 to ( )8
B 5 A
11 5 10
1011 0101 1010
(B5A)16 = (5532)8
Any Base in Decimal
•Converting from any base to
decimal is done by multiplying
each digit by its weight and
summing.
Positional Number System
Position Value in Base
10 2 8 16
0 100 20=1 80=1 160=1
1 101 21=2 81=8 161=16
2 102 22=4 82=64 162=256
3 103 23=8 83=512 163=4096
4 104 24=16 84=4 096 164=65 536
5 105 25=32 85=32 768 165=1 048 576
6 106 26=64 86=262 144 166=16 777 216
7 107 27=128 87=2 097 152 167=268 435 456
8 108 28=256 88=16 777 216 168=4 294 967 296
9 109 29=512 89=134 217 728 169= 68 719 476 637
Binary to Decimal
e.g.: a. (10101)2 to ( )10
a. (37)10 to ( )2
Remainder
2 37
2 18 1
2 9 0
2 4 1
2 2 0
1 0
(37)10 = (100101)2
Decimal to Binary
b. (125)10 to ( )2
(125)10 = (01111101 )2
or (125)10 = (1111101 )2
Decimal to Octal
Remainder
8 177
8 22 1
a. (177)10 to ( )8
8 16 6
8 2 2
(177)10 = (261)8
Decimal to Octal
(670)10 to ( )8
Decimal to Hexadecimal
Remainder
16 596
a. (596)10 to ( )16 16 37 4
16 2 5
0 2
(596)10 = (254)8
Decimal to Hexadecimal