We have already seen octal to binary and hexadecimal to binary conversion in an earlier article. In this post, we will be learning how to convert binary to octal and binary to hexadecimal numbers. Following is the technique for these conversions.
Technique
- For Octal, Group bits in threes, starting from the right
- For Hexadecimal, Group bits in fours, starting from the right
- Append ‘0’s to the leftmost bits if required
- Convert the grouped bits to octal or hexadecimal digits
Binary to Octal Conversion
Example: 10110101112 = ?8
Binary to Hexadecimal Conversion
Example: 10101110112 = ?16
For a detailed explanation, watch the following lecture video.