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.

Table of Contents

Toggle## Octal to Hexadecimal Number Conversion

### Octal to hexadecimal: Rules for integer conversion

- Replace each octal digit by their equivalent binary number and write them side by side as their octal order.
- Take every 4 bit from right to left and fill up by taking zeros if there is not available digit at the left to consist 4 bits.
- Replace every 4 bit by their equivalent hexadecimal value.

**Example**: Convert 374_{8} 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.

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

### Octal to hexadecimal: Rules for fraction conversion

- Replace each octal digit by their equivalent binary number and write them side by side as their octal order.
- Take every 4 bit from left to right and fill up by taking zeros if there is not available digit at the right to consist 4 bits.
- Replace every 4 bit by their equivalent hexadecimal value.

**Example** : Conversion of 0.504_{8} 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.

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.405_{8} 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.

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.

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

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.

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?

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!

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

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.

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