HEX

xetrevxetrev Posts: 59Member ■■□□□□□□□□
Is hex on the ccna? if so anyone have a good tuturial on converting binary to hex and vice versa?

Comments

  • fuseboxfusebox Posts: 87Member ■■□□□□□□□□
    Well basically, if you have an 8 bit binary number, you split it into two nibbles (4bits). Then convert those four bits into the Hex number.

    eg: Hex goes as follows;

    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
    1111 F


    now supposing you had a the following 8bit binary number;

    10110011.... So split this into two... you get 1011 & 0011 now from the above, this equals B & 3 Therefore the equivalent Hex no. is B3

    Does that help.?
    Im a newbie.... please be easy on me.
  • xetrevxetrev Posts: 59Member ■■□□□□□□□□
    yah thats cake, 20x easier then i thought.
    so 10101010 would be 170
    split that into 1010 and 1010
    which = AA?
  • Ricka182Ricka182 Posts: 3,359Member
    That is mad easy to remember...cool.
    i remain, he who remains to be....
  • fuseboxfusebox Posts: 87Member ■■□□□□□□□□
    yep... thats pretty much it. :)
    Im a newbie.... please be easy on me.
  • xetrevxetrev Posts: 59Member ■■□□□□□□□□
    thanks i am taking the exam thursday and while i was cramming i forgot that i did not know how to do the hex converstions. they are simple!
  • porengoporengo Posts: 343Member
    Good luck on your exam!
  • shadown7shadown7 Posts: 529Member
    Good luck on your exam!!
  • Fu LoserFu Loser Posts: 123Member
    Heres how I remember Hex.

    take four bits and create list of binary 0-15

    then take numbers 10-15.

    A=10
    B=11
    C=12
    D=13
    E=14
    F=15

    When you take your exam and you are writing everything you can remember on your white sheet before the test. The last 2 things (that I think) you should write out is a good complete IP table and then Hex down a side of the paper.

    A complete IP and Hex table will save you time and help prevent dumb math errors that you may make during your test ( assuming ou make the tables correct :D )

    ADDED:

    go from Hex to decimal using this formula.

    (16*x)+z

    x = First Hex character
    y = Second Hex Character

    example. FA

    (16*15)+10 = 250

    example. BD

    (16*11)+13 = 189
Sign In or Register to comment.