Number System
Number System
= 1 + 0 + 4 + 8 + 16
=29
= 7 (8)0 + 3 (8)1
= 7 (1) + 3 (8)
= 7 + 24
=31
=59,305
=1(2)0+0(2)1+0(2)2+0(2)3 =1(2)0+0(2)1+1(2)2+0(2)3
=1+0+0+0 =1+0+4+0
=1 =5
001 111
=1(2)0+0(2)1+0(2)2 =1(2)0+1(2)1+1(2)2
=1+0+0 =1+2+4
=1 =7
010 100
=0(2)0+1(2)1+0(2)2 =0(2)0+0(2)1+1(2)2
=0+2+0 =0+0+4
=2 =4
7 *2 3 *2
1 7/2 3 .5 1 1 3/2 1 .5 1
2 3/2 1 .5 1 2 1/2 0 .5 1
3 1/2 0 .5 1 3 0 0
6 *2 1 *2
1 6/2 3 0 0 1 1/2 0 .5 1
2 3/2 1 .5 1 2 0 0
3 1/2 0 .5 1 3 0 0
Binary Number – 1111100110012
Example: Octal to Hexadecimal
Step 1: Octal to Binary
Octal Number: 5368
5 *2 3 *2
1 5/2 2 .5 1 1 3/2 1 .5 1
2 2/2 1 0 0 2 1/2 0 .5 1
3 1/2 0 .5 1 3 0 0
6 *2
1 6/2 3 0 0
Binary Number – 2 3/2 1 .5 1
1010111102 3 1/2 0 .5 1
Example: Octal to Hexadecimal
Step 2: Binary to Hexadecimal
Binary Number: 1010111102 (0001 0101 1110)
0001 1110
=1(2)0+0(2)1+0(2)2+0(2)3 =0(2)0+1(2)1+1(2)2+1(2)3
=1+0+0+0 =0+2+4+8
=1 = 14
0101
=1(2)0+0(2)1+1(2)2+0(2)3
=1+0+4+0
=5
Hexadecimal Number – 15E16
Example: Hexadecimal to Binary
Hexadecimal Number: 3AB216 -------- Binary: 111010101100102
3 *2 10 *2
1 3/2 1 .5 1 1 10/2 5 0 0
2 1/2 0 .5 1 2 5/2 2 .5 1
3 0 0 3 2/2 1 0 0
4 0 0 4 1/2 0 .5 1
11 *2 2 *2
1 11/2 5 .5 1 1 2/2 1 0 0
2 5/2 2 .5 1 2 1/2 0 .5 1
3 2/2 1 0 0 3 0 0
4 1/2 0 .5 1 0 0
Example: Hexadecimal to Octal
Step 1: Hexadecimal to Binary
Hexadecimal Number: 1AC16 -------- Binary: 0001101011002
1 *2 10 *2
1 1/2 0 .5 1 1 10/2 5 0 0
2 0 0 2 5/2 2 .5 1
3 0 0 3 2/2 1 0 0
0 0 4 1/2 0 .5 1
12 *2
1 12/2 6 0 0
2 6/2 3 0 0
3 3/2 1 .5 1
4 1/2 0 .5 1
Step 2: Binary to Octal
Binary Number: 0001101011002 (000 110 101 100)
000 110
=0(2)0+0(2)1+0(2)2 =0(2)0+1(2)1+1(2)2
=0+0+0 =0+2+4
=0 =6
101 100
=1(2)0+0(2)1+1(2)2 =0(2)0+0(2)1+1(2)2
=1+0+4 =0+0+4
=5 =4