Hexadecimal to Octal

Ques: Convert B5A16 to Octal.

Sol: 
  1. Separate the digits of the given hex number.
    B               5               A
  2. Find the equivalent binary digit number for each digit. Add 0 to the left if any of the binary equivalent is shorter than 4 bits.
    B               5               A
    1101         0101         1010
  3. Write all the bits together.
    110101011010
  4. Separate the binary bits into groups each containing 3 bits from right to left. Add 0s to the left if the last group contain less than 3 bits.
    110        101        011        010
  5. Find the octal equivalent for each group.
    110        101        011        010
    5            5            3            2
  6. Write all the octal number together while keeping the order. This will give the octal equivalent number.
    5532
    Result:
               B5A16 = 55328

No comments:

Post a Comment