In: Computer Science
Convert Octal A09sixteen
Given:
Hexadecimal number = (A09)16
To do:
Convert hexadecimal to octal
Steps to convert hexadecimal to octal:
Step 1: If the given hex number contains more
than 1 digit, separate the digits.
Step 2: Find the equivalent binary number for each
digit. Add 0's to the left if any of the binary equivalent is
shorter than 4 bits.
Step 3: Group all the binary digits together into
one group.
Step 4: Now separate the binary digits into
groups, each containing 3 bits from right to left. Add 0s to the
left, if the last group contains less than 3 bits.
Step 5: Find the octal equivalent for each
group.
Step 6: Write all octal equivalent of each digit
together where keeping the same order.
Solution:
Convert Hexa Decimal number to binary
A 0 9
1010 0000 1001
(A09)16 = (101000001001)2
Convert Binary Number into Octal Number
Split the binary number from left to right each group 3 bits
101 000 001 001
5 0 1 1
(101000001001)2 = (5011)8
The octal number is 5011.