Answers to Base Conversion Exercises

    1. 35
    2. 738
    3. 2393
    4. 45871
    5. 14040

    1. 4678; 13716
    2. 273658; 2EF516

    1. 111100000011
    2. F03

    1. 00111100100111100111 (the first two 0s aren't necessary!)
    2. 744747

    1. 10000100002; 10208; 21016; 13537
    2. 10000101011012; 102558; 10AD16; 153067
    3. 1010101012; 5258; 15516; 6657
    1. 25-1 = 31
    2. 211-1 = 2047
    3. 231-1 = 2,147,483,647
    1. 1111111100111010
    2. 0000000000100101
    3. 1111111111011011
    4. 1110101110001101
    5. 0010001110001110
    6. 1101110001110010
    1. 115
    2. -119
    3. -34
    4. 7
    5. -1
    1. The largest positive integer that fits in 12-bit twos complement is 211 - 1 = 2047 so 2548 is too big and overflow will occur. In fact, the base 2 representation of 2548 is 100111110100 which is 12 bits but there needs to be at least one more bit for the sign. The computer would take the 12 bits and interpret it as a 12-bit twos complement number. Hence it would report a value of -1548.
    2. The smallest integer that fits in 12-bit twos complement is -2048 so -5377 is too small.