0% found this document useful (0 votes)
50 views1 page

4 9

The document describes how to convert binary numbers to decimal and hexadecimal numbering systems. Binary numbers are broken down into place values that are then summed to get the decimal equivalent. For hexadecimal, binary numbers are grouped into four-bit sections left to right, padded with leading zeros if needed, and each section is replaced with the corresponding hexadecimal digit. Examples are provided of conversions between the different numbering systems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

4 9

The document describes how to convert binary numbers to decimal and hexadecimal numbering systems. Binary numbers are broken down into place values that are then summed to get the decimal equivalent. For hexadecimal, binary numbers are grouped into four-bit sections left to right, padded with leading zeros if needed, and each section is replaced with the corresponding hexadecimal digit. Examples are provided of conversions between the different numbering systems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Pretvaranje iz binarnog u dekadni brojni sistem lako se izvodi prema definiciji:

(1000)2 = 1 ⋅ 23 + 0 ⋅ 22 + 0 ⋅ 21 + 0 ⋅ 20 = 1 ⋅ 8 + 0 ⋅ 4 + 0 ⋅ 2 + 0 ⋅ 1 = 8 + 0 + 0 + 0 = (8)10

(110101)2 = 1 ⋅ 25 + 1 ⋅ 24 + 0 ⋅ 23 + 1 ⋅ 22 + 0 ⋅ 21 + 1 ⋅ 20 = 1 ⋅ 32 + 1 ⋅ 16 + 0 ⋅ 8 + 1 ⋅ 4 + 0 ⋅ 2 + 1 ⋅ 1 =
= 32 + 16 + 0 + 4 + 0 + 1 = (53)10

(111001)2 = 1 ⋅ 25 + 1 ⋅ 24 + 1 ⋅ 23 + 0 ⋅ 22 + 0 ⋅ 21 + 1 ⋅ 20 = 1 ⋅ 32 + 1 ⋅ 16 + 1 ⋅ 8 + 0 ⋅ 4 + 0 ⋅ 2 + 1 ⋅ 1 =
= 32 + 16 + 8 + 0 + 0 + 1 = (57)10

(10101101101)2 = 1 ⋅ 210 + 0 ⋅ 29 + 1 ⋅ 28 + 0 ⋅ 27 + 1 ⋅ 26 + 1 ⋅ 25 + 0 ⋅ 24 + 1 ⋅ 23 + 1 ⋅ 22 + 0 ⋅ 21 + 1 ⋅ 20 =
= 1 ⋅ 1024 + 0 ⋅ 512 + 1 ⋅ 256 + 0 ⋅ 128 + 1 ⋅ 64 + 1 ⋅ 32 + 0 ⋅ 16 + 1 ⋅ 8 + 1 ⋅ 4 + 0 ⋅ 2 + 1 ⋅ 1 =
= 1024 + 0 + 256 + 0 + 64 + 32 + 0 + 8 + 4 + 0 + 1 = (1389)10

(1111100110001100110)2 = 1 ⋅ 218 + 1 ⋅ 217 + 1 ⋅ 216 + 1 ⋅ 215 + 1 ⋅ 214 + 0 ⋅ 213 + 0 ⋅ 212 + 1 ⋅ 211 +


+ 1 ⋅ 210 + 0 ⋅ 29 + 0 ⋅ 28 + 0 ⋅ 27 + 1 ⋅ 26 + 1 ⋅ 25 + 0 ⋅ 24 + 0 ⋅ 23 + 1 ⋅ 22 + 1 ⋅ 21 + 0 ⋅ 20 =
= 1 ⋅ 262144 + 1 ⋅ 131072 + 1 ⋅ 65536 + 1 ⋅ 32768 + 1 ⋅ 16384 + 0 ⋅ 8192 + 0 ⋅ 4096 + 1 ⋅ 2048 +
+ 1 ⋅ 1024 + 0 ⋅ 512 + 0 ⋅ 256 + 0 ⋅ 128 + 1 ⋅64 + 1 ⋅ 32 + 0 ⋅ 16 + 0 ⋅ 8 + 1 ⋅ 4 + 1 ⋅ 2 + 0 ⋅ 1 =
= 262144 + 131072 + 65536 + 32768 + 16384 + 0 + 0 + 2048 +
+ 1024 + 0 + 0 + 0 + 64 + 32 + 0 + 0 + 4 + 2 + 0 = (511078)10

Za pretvaranje iz binarnog u heksadekadni brojni sistem treba binarne cifre grupirati zdesna na lijevo u
grupe od po 4 cifre, prvu grupu slijeva dopuniti po potrebi vodećim nulama do četiri cifre, a zatim
svaku grupu smijeniti odgovarajućim heksadekadnim ciframa prema pravilima 0000 → 0, 0001 → 1,
0010 → 2, 0011 → 3, 0100 → 4, 0101 → 5, 0110 → 6, 0111 → 7, 1000 → 8, 1001 → 9, 1010 → A,
1011 → B, 1100 → C, 1101 → D, 1110 → E i 1111 → F:

(1000)2 = (8)16

(110101)2 = (0011| 0101)2 = (35)16

(111001)2 = (0011| 1001)2 = (39)16

(10101101101)2 = (0101| 0110| 1101)2 = (56D)16

(1111100110001100110)2 = (0111| 1100| 1100| 0110| 0110)2 = (7CC66)16

You might also like