Converting binary to hexadecimal - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Converting binary to hexadecimal

LEMon0097LEMon0097 Posts: 3Member
I am not sure how to convert from the number to binary. I understand how to go from binary to hex once I have the binary number. I did the first one 100 and I got 00011001 can someone tell me if this is right and how to do the other two.

Binary--Hex
100
4340
2000

Like I said I think I have 100 right but can't figure out the other two.

Thanks so much,
Laura

Comments

  • VilanyeVilanye Posts: 684Member
    The binary number 100 is 0x4 in hex. The 0x has no numerical meaning, it only designates it as hexadecimal.

    To convert from binary to hex, just convert the binary number every 4 digits, starting from the least significant digit.

    For example: 10000, rewrite as 00010000 and then split into fours 0001 0000. Then covert each grouping to hex: 0x10

    1111001101011010 -> 1111 0011 0101 1010 -> 0xF35A

    Hope that helps
  • rirajatrirajat Posts: 20Member
    : I am not sure how to convert from the number to binary. I understand how to go from binary to hex once I have the binary number. I did the first one 100 and I got 00011001 can someone tell me if this is right and how to do the other two.
    :
    : Binary--Hex
    : 100
    : 4340
    : 2000
    :
    : Like I said I think I have 100 right but can't figure out the other two.
    :
    : Thanks so much,
    : Laura
    :

    its easy ex:

    100/2=50 cary=0
    50/2=25 cary=0
    25/2=12 cary=1
    12/2=6 cary=0
    6/2=3 cary=0
    3/2=1 cary=1
    1/2=0 cary=1

    now count bottom to top then = 1100100

    do this way
Sign In or Register to comment.