Académique Documents
Professionnel Documents
Culture Documents
Acetates03
Acetates03
Objectifs :
la fin de cette unit,
- vous saurez comment passer dune base lautre
- vous saurez comment sont reprsents dans l'ordinateur les nombres fractionnaires et les nombres exprims en virgule flottante.
- vous saurez comment l'ordinateur effectue des calculs sur des
nombres utilisant ces reprsentations.
Pour y arriver, vous devez matriser les objectifs suivants :
- passer d'une base une autre par diffrentes mthodes :
valuation la main, l'aide de tables, ou l'aide d'une calculette;
PierreMarchand,2001
PierreMarchand,2001
i
a
B
i dans la base destination.
i=0
Dcimal-binaire :
14210 = (1 102) + (4 101) + (2 100)
= (1 10102 10102) + (1002 10102) + 00102
= 1000 11102
PierreMarchand,2001
PierreMarchand,2001
i
a
B
i = anBn + an-1Bn-1 + + a1B + a0
i=0
PierreMarchand,2001
1000 1110
1+20=1
0+21=2
0+22=4
0+24=8
1 + 2 8 = 1710
1 + 2 1710 = 3510
1 + 2 3510 = 7110
0 + 2 7110 = 14210
PierreMarchand,2001
R=0
Arithmtique BCD
R=0
1 + 10102 0 = 1
1002 + 10102 1 = 11102
102 + 10102 11102 = 1000 11102
PierreMarchand,2001
27 / 4 = 6, reste 3
6 / 4 = 1, reste 2
1 / 4 = 0, reste 1 2710 = 123 4
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
0011 0010
0011 0111
0000 0010
0000 0111
PierreMarchand,2001
0000 0011
0011 0000
0011 0011
0000 0010
0011 0000
0011 0010
0000 0111
0011 0000
0011 0111
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
1,0
= 00000001,0000000016
-1,0
= FFFFFFFF,0000000016
0,5
= 00000000,8000000016
-0,5
= FFFFFFFF,8000000016
f
23
32
N = (-1)s 2E 1,f
PierreMarchand,2001
0 10001000 11110100000000000000000
quon peut crire 447A0000IEEE en groupant les bits 4 par 4 et en
les codant en hexadcimal.
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
f
52
64
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001
BCD
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
excdent-3 2 dans 5
0011
00011
0100
00101
0101
00110
0110
01001
0111
01010
1000
01100
1001
10001
1010
10010
1011
10100
1100
11000
biquinaire
01 00001
01 00010
01 00100
01 01000
01 10000
10 00001
10 00010
10 00100
10 01000
10 10000
PierreMarchand,2001
PierreMarchand,2001
PierreMarchand,2001