28.06.2014 Views

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Now along the column headings we see a 1 in the columns for 64, 32, 8, 4, and 1. So we<br />

add these numbers together 64+32+8+4+1=109. Therefore the binary number 01101101<br />

is equivalent to the decimal number 109. Let’s do another one…convert 10010101 to<br />

decimal.<br />

2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0<br />

128 64 32 16 8 4 2 1<br />

1 0 0 1 0 1 0 1<br />

128 + 16+ 4 + 1=149.<br />

It’s another one of those things: easy when you know how. Let’s take a quick time out<br />

and let you try some binary to decimal conversions:<br />

1. 10101010<br />

2. 01010101<br />

3. 11001100<br />

4. 11000101<br />

5. 11111111<br />

Now let’s check your answers with the answer section. Did you get the right ones? I<br />

certainly hope so. Try not to use a calculator. You will not be allowed to use one on<br />

the CCNA test so get practice without it now.<br />

Converting from Decimal to Binary:<br />

This is just the opposite of what we just did except we use subtraction. If we are given<br />

the decimal number 141 to convert to binary we just subtract our number (141) from each<br />

column heading in succession until we have a remainder of zero. If we encounter a<br />

negative number then we put a zero in our bit bashing column. This is tough to explain<br />

without working it through…so let’s learn <strong>by</strong> doing. Starting out with our 128 column<br />

heading: 141 - 128 = 13. So we put a “1” under the 128 heading and move to the next<br />

column heading.<br />

2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0<br />

128 64 32 16 8 4 2 1<br />

1<br />

Our next one: 13 - 64 = -51. Since this is negative we put a zero in the column heading<br />

for 64 and move on to the next one.<br />

2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0<br />

128 64 32 16 8 4 2 1<br />

1 0<br />

50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!