Converting number bases | ||||||||||
Given: binary representation | ||||||||||
Find: base 8 (octal) representation | ||||||||||
value: | 101010111010100110two | |||||||||
Could convert to base 10, then convert to base 8 | ||||||||||
However, what is the pattern of digit values? | ||||||||||
binary: | 64 | 32 | 16 | 8 | 4 | 2 | 1 | |||
octal: | 64 | 8 | 1 | |||||||
Group binary digits: | ||||||||||
101 | 010 | 111 | 010 | 100 | 110 | |||||
5 | 2 | 7 | 2 | 4 | 6 | |||||
Binary to hex: group bits by 4 | ||||||||||
What about octal to hex? | ||||||||||