Number System
Number System
Decimal to Binary
(10)10 = ( 1010)2
Base of Binary
Remainders
2 10
2 5 0
2 2 1
2 1 0 ( 1 0 1 0)2
0 1 Bottom to top
(107)10 = (1101011)2
2 107
2 53 1
2 26 1
2 13 0
2 6 1
2 3 0
2 1 1
0 1
(10.5)10=(1010.1)2
(0.5)10
0 5*2
1 0
23 22 21 20 2-1
1 0 1 0 1
Most Significant
Binary Point Least Significant
Bit (MSB)
Bit (LSB)
(10.25)10=(1010.01)2-
(0.25)10
0 0.25*2
0 0.50*2
1 1.0
(10.8)10=(1010.1100)2
0 8*2
1 6*2
1 2*2
0 4*2
0 8*2
1 6*2
1 2*2
0 4*2
0 8*2
1 6*2
1 2*2
0 4*2
0 8
Binary to Decimal number
(10100)2=( 20 )10
1x24+0x23+1x22+0x21+0x20
16+0+4+0+0=20
(80)10=(1 2 0)8
8 80
8 10 0
8 1 2
0 1
Octal to Decimal Number
(2 4)8 = (20)10
2x81+4x80
16+4=20
16 50
16 3 2
0 3
2. (10011.11)2= (2 3.6)8
010 011 . 110
4 2 1 4 2 1 4 2 1
Binary addition
Rules:
0+0=0
1+1=10
1+0=1
0+1=1
1+1=11
1. 11110+1101
11110
+ 01101
101011