WELCOME
Number System: A number system is a consistent
method of representing numbers using digits or other
symbols.
Types of Number System
Conversion of Number System
Decimal to Binary Conversion:
Example: (25)10=(?)2
Division Quotient Reminder
25/2 12 1(LSB)
12/2 6 0
6/2 3 0
3/2 1 1
1/2 0 1(MSB)
Result: (25)10=(11001)2
Decimal to Octal Conversion:
Example: (152.25)10=(?)8
In case of integer,
Division Quotient Remainder
152/8 19 0
19/8 2 3
2/8 0 2
In case of fraction,
Multiplication Result Carry
0.25*8 0 2
Result: (152.25)10=(230.2)8
Decimal to Hexadecimal Conversion:
Example: (152.25)10=(?)16
In case of integer,
Division Quotient Remainder
152/16 9 8
9/16 10 9
In case of fraction,
Multiplication Result Carry
0.25*16 0 4
Result: (152.25)10=(230.4)16
Binary to Decimal Conversion:
Example: (1101.101)2=(?)10
(1101.101)2=1*23+1*22+0*21+1*20+1*2-1+0*2-2+1*2-3
=1*8+1*4+0*2+1*1+1*(1/2)+0+1*(1/8)
=8+4+0+1+1.5+0+0.125
=13.625
Result:(1101.101)2=(13.625)10
Binary to Octal Conversion:
Example:(10101.11)2=(?)8
(10101.11)2=0 1 0 101 . 110
= 2 5 6
=(25.6)8
Result:(10101.11)2=(25.6)8
Binary to Hexadecimal Conversion:
Example: (1101101.101111)2=(?)16
(1101101.101111)2=0 1 1 0 1101 . 1011 1100
= 6 D B C
=([Link])16
Result:(1101101.101111)2=([Link])16
Octal to Binary conversion:
Example: (525.27)8=(?)2
(525.27)8= 5 2 5 . 2 7
=101 010 101 . 010 111
Result(525.27)8=(101010101.010111)2
Octal to Decimal Conversion:
Example: (507.46)8=(?)10
In case of integer: In case of fraction:
(507)8=5*82+0*81+7*80 (.46)8=.4*8-1+6*8-2
=5*64+0*8+7*1 =4/8+6/64
=320+0+7 =(.5937)10
=(327)10
Result:(507.46)8=(327.5937)10
Octal to Hexadecimal Conversion:
Example:(525.27)8=(?)16
(525.27)8= 5 2 5 . 2 7
101 010 101 . 010 111
(525.27)8=(101010101.010111)2
0001 0101 0101 . 0101 1100
1 5 5 . 5 C
Result:(525.27)8=(155.5C)16
Hexadecimal to Decimal Conversion:
Example:(3B)16=(?)10
(3B)16=3*161+B*160
=3*16+11*1
=48+11
=(59)10
Result:(3B)16=(59)10
Hexadecimal to Binary Conversion:
Example:(ABC)16=(?)2
(ABC)= A B C
1010 1011 1100
Result:(ABC)16=(101010111100)2
Hexadecimal to octal Conversion:
Example:(ABC)16=(?)8
(ABC)16= A B C
1010 1011 1100
= 101 010 111 100
= 101 010 111 100
5 2 7 4
=(5274)8 Result:(ABC)16=(5274)8
1,s complement:
Example:(a) Adding 8 and 6
8= 0 0 0 0 1 0 0 0
+6 = 0 0 0 0 0 1 1 0
14 = 0 0 0 0 1 1 1 0
(b) Subtracting -4 from –9
-9 = 1 1 1 1 0 1 1 0
+4 = 0 0 0 0 0 1 0 0
-5 = 1 1 1 1 1 0 1 0
0 0 0 0 0 1 0 1 (1,s complement)
2,s complement:
Example:(a) Adding -9 and 7
-9 = 1 1 1 1 0 1 1 1
7= 0 0 0 0 0 1 1 1
-2 = 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 1 (1,s complement)
+1
0 0 0 0 0 0 1 0 (2,s complement)
(b) Subtracting -7 from -9
-9 = 1 1 1 1 0 1 1 1
7= 0 0 0 0 0 1 1 1
-2 = 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 1 (1,s complement)
+1
= 0 0 0 0 0 0 1 0 (2,s complement)
THANK YOU