Base Conversion (8)
(a) To convert a number N from base A to base B when B = Ak and k is a positive integer, group the digits of N in groups of k digits in both directions from the radix point and then replace each group with the equivalent digit in base B
(b) To convert a number N from base B to base A when B = Ak and k is a positive integer, replace each base B digit in N with the equivalent k digits in base A.
Examples
- (001 010 111. 100)2 = (127.4)8 (group bits by 3)
- (1011 0110 0101 1111)2 = (B65F)16 (group bits by 4)