BINARY SYSTEM



Numbers are represent using just 0 and 1

For computer because it work with voltage level

          1-      On / connected / signal

          0-      Off/ disconnected/ no signal



0-      0000

1-      001

2-      010

3-      011

4-      100

5-      101

6-      110

7-      111

8-      1000

9-      1001

              Representing binary systems 




8
4
2
1
0
0
0
0
0
0
1
1
0
0
0
1
2
2
0
0
1
0
2+1
3
0
0
1
1
4
4
0
1
0
0
4+1
5
0
1
0
1
4+2
6
0
1
1
0
4+2+1
7
0
1
1
1
8
8
1
0
0
0
8+1
9
1
0
0
1



Decimal to binary: divide 2

112/2 = 0

56/2 = 0

28/2 = 0

14/2 = 0

7/2 = 1

3/2 = 1

½ = 1



64
32
16
8
4
2
1
112
1
1
1
0
0
0
0
= 1110000




                      64+32+16=112

Binary to decimal: 1101001


6
5
4
3
2
1
0
1
1
0
1
0
0
1



1x2⁶ + 1 x 2⁵ + 0 x 2⁴ + 1 x 2³ + 0 x 2² + 0 x 2¹+ 1 x 2⁰

= 64+32+0+8+0+0+1

= 105
 

64
32
16
8
4
2
1
105
1
1
0
1
0
0
1







64+32+8+1=105

No hay comentarios:

Publicar un comentario