Number System
1. Binary Number System
Only 0 and 1 are allowed in binary number system. So the base is 2(only two numbers)
e.g:
(101)2
2. Decimal Number System
0,1,2......9 are allowed in decimal number system. So the base is 10( 0 to 9,totally 10 numbers)
e.g:
(25)10
e.g:
(25)10
The base is written along with the number to identify the number system.
Conversion from binary to decimal :
20=1
21=2
22=4 (2 x 2)
23=8(2 x 2x 2)
24=16(2 x 2x 2 x 2)
and so on.......
2. (110)2
1 1 0
= 1 x 2 2 + 1 x 2 1+ 0 x 2 0
= 4 + 2 + 0
= 6
1 1 0
= 1 x 2 2 + 1 x 2 1+ 0 x 2 0
= 4 + 2 + 0
= 6
3. (111)2
= 1 x 2 2 + 1 x 2 1 + 1 x 2 0
= 4 + 2+ 1
= 7
4. (1011)2
=1 x 2 3 + 0 x 2 2 + 1 x 2 1 + 1 x 2 0
= 8+0 + 2+ 1
= 11
5. (1101)2
=1 x 2 3 + 1 x 2 2 + 0 x 2 1 + 1 x 2 0
= 8+4 + 0+ 1
= 13
Conversion from decimal to binary
This involves repeated division of the quotient by two, the remainder forms the part of the answer.
1. (4)10
4 / 2 = 2 remainder = 0
2/2 = 1 remainder = 0
You cannot divide 1 by 2, so stop now. Therefore the answer is
=(100)2
2. (7)10
7 / 2 = 3 remainder = 1
3 / 2 = 1 remainder = 1
= (111)2
3. (13)10
13 / 2 = 6 remainder = 1
6 / 2 = 3 remainder = 0
3 / 2 = 1 remainder = 1
= (1101)2
No comments:
Post a Comment