Question

In: Computer Science

What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this...

What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this number?

Solutions

Expert Solution

Answer in binary:       11110010100
Answer in hexadecimal:  0x794

Explanation:
-------------
-108
This is negative. so, follow these steps to convert this into a 2's complement binary
Step 1:
Divide 108 successively by 2 until the quotient is 0
   > 108/2 = 54, remainder is 0
   > 54/2 = 27, remainder is 0
   > 27/2 = 13, remainder is 1
   > 13/2 = 6, remainder is 1
   > 6/2 = 3, remainder is 0
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1101100
So, 108 of decimal is 1101100 in binary
So, 108 in normal binary is 00001101100
Step 2: flip all the bits. Flip all 0's to 1 and all 1's to 0.
   00001101100 is flipped to 11110010011
Step 3:. Add 1 to above result
11110010011 + 1 = 11110010100
so, -108 in 2's complement binary is 11110010100

Adding 1 zeros on left hand side of this number to make it's length a multiple of 4
Hexadecimal     Binary
    0           0000
    1           0001
    2           0010
    3           0011
    4           0100
    5           0101
    6           0110
    7           0111
    8           1000
    9           1001
    A           1010
    B           1011
    C           1100
    D           1101
    E           1110
    F           1111
Use this table to convert from binary to hexadecimal
Converting 011110010100 to hexadecimal
0111 => 7
1001 => 9
0100 => 4
So, in hexadecimal 011110010100 is 0x794



Related Solutions

represent 8912 in 16-bit binary format and then convert it to Hexadecimal form.
represent 8912 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
11.  Convert this hexadecimal notation to binary notation: E4B Answer format: put a space between each four-bit...
11.  Convert this hexadecimal notation to binary notation: E4B Answer format: put a space between each four-bit pattern. (e.g., 1000 0000 0111) 12. Convert this decimal notation to an excess notation system using bit patterns of length three: -1 13. Convert this two's complement notation to its equivalent base ten representation: 10011 Note: Since the tables in the book on page only show 7 through -8 in a pattern of length four,          you will need to create a pattern of length...
7.What is the hexadecimal equivalent of the 16-bit signed integer -32,760 ? *Note: answer in two's...
7.What is the hexadecimal equivalent of the 16-bit signed integer -32,760 ? *Note: answer in two's complement*
1) given the 8-bit binary number of 10111110 (two) a)what is the hex representation of this...
1) given the 8-bit binary number of 10111110 (two) a)what is the hex representation of this number/ b) what is the decimal value if this number which is an 8-bit number as a two complement signed number. all steps included c)what is the decimal value of this number as an 8-bit unsigned number, please write all steps 2) given the decimal number (-0.875) or (-7/8) convert it to single-precision floating-point. please show the easiest way to get to this,.
Convert the following numbers to 8-bit binary and 8-bit hexadecimal: a) 20 b) 78 c) -25...
Convert the following numbers to 8-bit binary and 8-bit hexadecimal: a) 20 b) 78 c) -25 d) -96 Convert the following hexadecimal numbers to binary and decimal assuming two's compliment format: a) 0x56 b) 0x14 c) 0xF8 d) 0xCC MUST DO ALL PROBLEMS AND SHOW ALL WORK!!!!
7.   __________________ representation of a binary number uses the bit following (after)       the most significant...
7.   __________________ representation of a binary number uses the bit following (after)       the most significant bit as the sign bit, making it possible to determine whether an       integer is negative or positive.       A). 2’s complement       B). 1’s complement       C). bitwise complement       D). bitwise negation 8. To obtain the 2’s complement of a binary number, it is necessary to flip (reverse) the       bits and ___________________________.       A). subtract 1       B). divide by 1...
Design a Decoder Circuit that can convert a 4-bit Binary Number to a Hexadecimal Output.
Design a Decoder Circuit that can convert a 4-bit Binary Number to a Hexadecimal Output.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT