Sie sind auf Seite 1von 2

Representaciones de los nmeros de 0 a 31 (naturales).

Decimal Binario Octal Hexadecimal


0
00000
00
00
1
00001
01
01
2
00010
02
02
3
00011
03
03
4
00100
04
04
5
00101
05
05
6
00110
06
06
7
00111
07
07
8
01000
10
08
9
01001
11
09
10
01010
12
0A
11
01011
13
0B
12
01100
14
0C
13
01101
15
0D
14
01110
16
0E
15
01111
17
0F
16
10000
20
10
17
10001
21
11
18
10010
22
12
19
10011
23
13
20
10100
24
14
21
10101
25
15
22
10110
26
16
23
10111
27
17
24
11000
30
18
25
11001
31
19
26
11010
32
1A
27
11011
33
1B
28
11100
34
1C
29
11101
35
1D
30
11110
36
1E
31
11111
37
1F

Representaciones de nmeros con signo.

Decimal Signo magnitud Complemento a 1 Complemento a 2


15
01111
01111
01111
14
01110
01110
01110
13
01101
01101
01101
12
01100
01100
01100
11
01011
01011
01011
10
01010
01010
01010
9
01001
01001
01001
8
01000
01000
01000
7
00111
00111
00111
6
00110
00110
00110
5
00101
00101
00101
4
00100
00100
00100
3
00011
00011
00011
2
00010
00010
00010
1
00001
00001
00001
0
00000
00000
00000
0
10000
11111
00000
-1
10001
11110
11111
-2
10010
11101
11110
-3
10011
11100
11101
-4
10100
11011
11100
-5
10101
11010
11011
-6
10110
11001
11010
-7
10111
11000
11001
-8
11000
10111
11000
-9
11001
10110
10111
-10
11010
10101
10110
-11
11011
10100
10101
-12
11100
10011
10100
-13
11101
10010
10011
-14
11110
10001
10010
-15
11111
10000
10001
-16
10000
Operaciones en decimal, en complemento a 1 y en complemento a 2.
Decimal
4+3=7
4 + (-3) = 1
(-4) + 3 = (-1)
(-4) + (-3) = (-7)
4-3=1
4 - (-3) = 7
(-4) - 3 = (-7)
(-4) - (-3) = (-1)

Complemento a 1
00100 + 00011 = 00111
00100 + 11100 = (1) 00000
11011 + 00011 = 11110
11011 + 11100 = (1) 10111
00100 + 11100 = (1) 00000
00100 + 00011 = 00111
11011 + 11100 = (1) 10111
11011 + 00011 = 11110

Complemento a 2
00100 + 00011 = 00111
00100 + 11101 = (1) 00001
11100 + 00011 = 11111
11100 + 11101 = (1) 11001
00100 + 11101 = (1) 00001
00100 + 00011 = 00111
11100 + 11101 = (1) 11001
11100 + 00011 = 11111

Las operaciones en negrita suponen la necesidad de realizar una correcin.

Das könnte Ihnen auch gefallen