CONVERSIONACOMAFLOTANTE
Páginas: 2 (481 palabras)
Publicado: 8 de septiembre de 2015
2.
3.
4.
5.
6.
CONVERSIÓN NÚMEROS DECIMALES A IEEE 754
Convertir valor decimal a binario
Expresar el binario obtenido como 1 , x1…xn x 2n
Determinar el bit de signo: 0 si N > 0 ; 1 si N < 0Determinar el exponente E = n + 127 (exceso a M=127) y
determinar el correspondiente binario asociado
Determinar la mantisa F = x1…xn (se obtiene del paso 2)
Escribir el número según IEEE, completando conceros a la
derecha el valor de la mantisa hasta completar los 23 bits de la
mantisa
Ejemplo 1:
N10 = 577710 = 10110100100012 = 1, 011010010001 x 212
S = 0
E = 12+127 = 13910 = 100010112
F =011010010001
N(IEEE) = 0 10001011 01101001000100000000000
Ejemplo 2:
N(IEEE) = 1 10000001 01001001110001000000000
S = 1
E = 100000012 = 12910 – 127 = 210
F = 01001001110001
N10 = (-1) (1,01001001110001) x 22=
= -101,0010011100012 = -5,152587890625
Ejemplo 3:
N(IEEE) = 0 11001100 10000111110100100000000
S = 0
E = 110011002 = 20410 – 127 = 7710
F = 100001111101001
N10 = (+1) x (1, 100001111101001) x 277 =
=11000011111010012 x 262 =
= 50153 x 262 = 2,312898889 x 1023
Ejemplo 4:
N10 = 57,2310 = 111001,001112 = 1, 1100100111 x 25
S = 0
E = 5+127 = 13210 = 100001002
F = 1100100111
N(IEEE) = 0 1000010011001001110000000000000
EJEMPLOS CONVERSIÓN NÚMEROS DECIMALES A IEE
1. Convertir el valor decimal a hexadecimal
2. Normalizar el hexadecimal desplazando el punto decimal hasta la izquierda 0,
x1…xn xE16 + p ; siendo p el nº de posiciones desplazadas
3. Determinar el bit de signo: 0 si N > 0 ; 1 si N < 0
4. Determinar el exponente E = n + 64 (exceso a M=64) y determinar el
correspondiente binarioasociado
5. Determinar la mantisa F = x1…xn (se obtiene del paso 2)
6. Escribir el número según IEE, completando con ceros hexadecimales a la
derecha el valor de la mantisa hasta completar los 24 bitsde la mantisa
Ejemplo 5: N = 10,5010 = A,816 = ,A8 E16 + 1
S = 0
E = 1+64 = 6510 = 10000012
F = 10101000
NIEE = 82 A8 00 00
1000
001
0
1010
1000
0000
0000
8
2
A
8
0
0
Exponente
Signo
Mantisa...
Leer documento completo
Regístrate para leer el documento completo.