Exercicios Ponto Flutuante
Por: Thiago Nascimento • 11/10/2015 • Trabalho acadêmico • 337 Palavras (2 Páginas) • 853 Visualizações
a) 0 / 10001001 / 00000000001000000000000
sinal:"0" = +
exp: 137 -127 = 10
0 * 2^-1 = 0
...
1 * 2^-11 = 0,00048828125
...
0*2^-23 = 0
1,00048828125 x 2^10
b) 1 / 10000011 / 10110000000000000000000
sinal:"1" = -
exp: 131 - 127 = 4
1 * 2^-1 = 0,5
0 * 2^-2 = 0
1 * 2^-3 = 0,125
1 * 2^-4 = 0,0625
0 * 2^-5 = 0
...
-1,6875 x 2^4
c) 1 / 10000100 / 00000010000000000000000
sinal:"1" = -
exp: 132 - 127 = 5
0 * 2^-1 = 0
...
1 * 2^-7 = 0,0078125
...
-1,0078125 x 2^5
d) 0 / 10000100 / 00100010000000000000000
sinal:"0" = +
exp: 132 - 127 = 5
0 * 2^-1 = 0
0 * 2^-2 = 0
1 * 2^-3 = 0,125
...
1 * 2^-7 = 0,0078125
...
1,1328125 x 2^5
e) 0 / 01111010 / 00100000000000000000000
sinal:"0" = +
exp: 122 - 127 = -5
0 * 2^-1 = 0
0 * 2^-2 = 0
1 * 2^-3 = 0,125
...
1,125 x 2^-5
f) 0 / 10000101 / 00000001000000000000000
sinal:"0" = +
exp: 133 - 127 = 6
0 * 2^-1 = 0
0 * 2^-2 = 0
...
1 * 2^-8 = 0,00390625
1,00390625 x 2^6
g) 0 / 10011111 / 00000000000000000000000
sinal:"0" = +
exp: 159 - 127 = 32
0 * 2^-1 = 0
...
1,0 x 2^32
h) 1 / 10000101 / 10001010100000000000000
sinal:"1" = -
exp:
...