Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Konverzija - Binarni u decimalni (metod

n 1
polinoma)
B i
c b i

i  m

• 1100,11012 =
• 1x23 + 1x22 + 0x21 + 0x20 + 1x2-1 + 1x2-2 + 0x2-3 +
1x2-4 =
• (8)10 + (4)10 + (0)10 + (0)10 + (1/2)10 + (1/4)10 + (0/8)10
+ (1/16)10=
• 12,812510

16
Konverzija - Binarni u decimalni (metod
polinoma)
n 1
B i
c b
im
i

• 10101011,10012 =
• 1x27 + 0x26 + 1x25 + 0x24 + 1x23 + 0x22 + 1x21 + 1x20
+ 1x2-1 + 0x2-2 + 0x2-3 + 1x2-4 =
• (128)10 + (0)10 + (32)10 + (0)10 + (8)10 + (0)10 + (2)10 +
(1)10 + (1/2)10 + (0/4)10 + (0/8)10 +(1/16)10 =
• 171,562510

17
Konverzija - Binarni u decimalni
• Konverziju bi mogli vršiti i ovako:
(10101011)2=
----------------------------------------------------
1 0 1 0 1 0 1 1
27 26 25 24 23 22 21 20
----------------------------------------------------
=1*27 + 0*26 + 1*25 + 0*24 + 1*23 + 0*22 +1*21 + 1*20 =
=128 + 32 8 2 + 1
=171(10)

18
? -> ?
• (101011)2= ?10

19

You might also like