Conversion of number system – Octal to Hexadecimal

You are currently viewing Conversion of number system – Octal to Hexadecimal

To convert a number from octal to hexadecimal we will use two rules where one is for integer part and other is for fraction part. Hexadecimal is the 16 based number system where octal is the 8 based. In this article we will learn to convert a number from octal to hexadecimal. Let’s see the rules first.

Rules for integer conversion

Example: Convert 3748 to equivalent hexadecimal number

Here, we have to convert the octal to hexadecimal number which is 374 to the equivalent hexadecimal number. Let’s see the given figure to learn conversion. Like as other number system here also we can add zeros at left side of the integer or ignore them.

octal to hexadecimal number conversion

So, the equivalent hexadecimal number will be (FC)16. We can convert any octal integer to its equivalent hexadecimal by this way.

Rules for fraction number

Example : Conversion of 0.5048 to equivalent hexadecimal number

At first we will convert the given octal number to the equivalent binary number and then convert the binary number to its equivalent hexadecimal number for converting the whole number from octal to hexadecimal. See this bellow.

octal to hexadecimal

However, here we can ignore or take necessary zeros at right side at the time of our conversion. Now, we will see a full example to convert a number from octal to hexadecimal. We will convert the whole number at a time. Let’s try to understand the example bellow.

Example: Conversion of 343.4058 to equivalent hexadecimal number

To convert this number we will write the equivalent binary number first. Every digit of octal number will be converted to three digits binary number. After that we will convert the binary number again to the equivalent hexadecimal number.

At the time to these two conversion the general rule of taking or ignoring zeros will be applied. We can write 101 instead of 0101 because the value of zero at the left side of integer or right side of the fraction part should be ignored.

octal to hexadecimal converter

That means, we have got (E3.828)16 after converting the given octal number to the equivalent hexadecimal number. Obviously you can convert any other octal to hexadecimal using this rule. So, try this.

Please tell us bellow in the comment section if you find this article helpful.

Related Number Conversion Guide:

This Post Has 7 Comments

  1. June

    Great weblog right here! Additionally your website rather
    a lot up very fast! What host are you using? Can I am
    getting your affiliate link to your host? I want my web site loaded up as quickly as yours lol

  2. Walter

    We stumbled over here different web address and thought I should check things out.

    I like what I see so i am just following you. Look forward to
    exploring your web page again.

  3. Kristeen

    Thank you, I have recently been searching for information approximately
    this subject for a long time and yours is the best
    I have came upon till now. However, what concerning the conclusion? Are you
    positive about the source?

  4. ps4 games when

    When someone writes an post he/she retains the plan of a user in his/her brain that how a user can be
    aware of it. So that’s why this paragraph is perfect.
    Thanks!

  5. was ps4 games

    I do not know whether it’s just me or if everyone else encountering issues with your
    site. It appears like some of the text on your content are running off the screen. Can somebody else please provide
    feedback and let me know if this is happening
    to them too? This may be a problem with my browser because I’ve had this happen before.
    Appreciate it

  6. an ps4 games

    I for all time emailed this web site post page to all my associates, as if like
    to read it after that my contacts will too.

  7. Octavia

    If some one needs to be updated with newest technologies after that he must be visit this site and be up to date daily.

Leave a Reply

nineteen − 12 =