PDA

View Full Version : octit to 3 bit binary and hexit to 4 bit binary



solomon_13000
04-21-2007, 09:31 AM
How do I convert octit to 3 bit binary and hexit to 4 bit binary using calculation?

Regards.

daon
04-21-2007, 12:44 PM
Each digit in octal is three bits. Each bit in hexidecimal is 4 bits. For any base that is a power of 2, say 2^n, for every digit of that base, you have n bits.

For example: in base 8=2^3, the number 13634 breaks up as follows:

1 ..... 3 ..... 6 ..... 3 ..... 4
001 011 110 011 100

So 13634<sub>8</sub> = 001011110011100<sub>2</sub>.