Home > Archive > CCNA > December 2003 > Hex Conversion





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Hex Conversion
DrWatsonJr

2003-12-29, 6:26 pm

I've found an easy way throughout my studies on converting decimal to binary to hex for anyone's that's interested. In this example, I'll use decimal number 231.

1. Convert the decimal number into binary. This will give you an 8 bit number. Decimal number 231 converted to binary is 11100111

2. Separte the 8 bit binary number into two equal parts. In this example, separating the 8 bit number into two equal parts would be: 1110 & 0111

3. In each "4 bit number", starting from the right-most bit you'll have a 1's place, a 2's place, a 4's place and an 8's place.
Ex. 8 4 2 1 8 4 2 1
1 1 1 0 0 1 1 1

4. Once you have reached this point, simply add the "places" that have a 1 and omit the "places" that have a 0.

Ex. 8+4+2 = 14 or E in hex (First "4 bit number") (***Hex***10= A, 11= B, 12=C, 13=D, 14=E, 15=F)

Ex. 4+2+1= 7 (Second "4 bit number")

5. Put these together, and you'll find that Decimal 231, Binary 11100111 and hex E7 are equivalent.

I hope this isn't insulting anyone's intelligence if this is already a known process, but it's a cool way I've found to easily convert decimal to hex.
scooter

2003-12-31, 6:48 am

I can say that it was one technique that was taught to me, but that doesn't mean that everyone teaches it or knows it....
And for you to come up with it on your own, I'd say that's pretty imopressive. Keep up the good work.

DrWatsonJr

2003-12-31, 1:23 pm

Thanks. Actually, I didn't come up with this myself, but it was kinda "molded together" from 3 or 4 different resources I've read from. It seemed like everytime I read about converting decimal to hex, they would give a truncated explanation for how to do it, but never a detailed explanation. Most would simply say to "refer to the hex conversion chart appended to the end of the chapter". I'm not sure if there will be a hex conversion chart on the CCNA exam, so this may be beneficial to anyone not knowing how to perform the conversion.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net