Computer Science, asked by anthonylp, 1 year ago

conversion of octal to hexadecimal

Answers

Answered by anjali403
0
How to Convert Octal to Hexadecimal

Below are the steps on octal to hexadcimal conversion -

Step 1: Let the number of digits in the number be n

Step 2: Multiply the digits with 8n-1where n is position of digit from the right end of the number.If the number has decimal

part the multiply digits after decimal by where m is position of the number from the decimal

Step 3: Add the terms after multiplication

Step 4: The obtained number is equivalent decimal number to the given octal

Step 5: Consider the decimal number,divide it by 16

Step 6: Note the remainder.

Step 7: Continue the process till the quotient in zero

Step 8: Write the remainder in the reverse order

Step 9: The obtained number is equivalent hexadecimal number to the given octadecimal number.

Now we will understand this conversion more clearly using examples

Question 1: Convert 10028 to hexadecimal
Solution:

 
The given number is 10028

10028 = (1 * 83)+ (0 * 82) + (0 * 81) + (2 * 80)

=1 * 512 + 0 * 64 + 0 * 8 + 2 * 1

= 512 + 0 + 0+ 2

= 514(decimal number)

Now we convert the above decimal to hexadecimal

16 | 514
16 | 32   --2
        2 -- 0

The hexadecimal number is 202

10028 = 20216
 

Similar questions