Convert -2116 to binary and represent it in Sign-and –Size code
The given decimal value is -2116
Now, conversion of the decimal value to the binary is given below -
2 | -2116 |
2 | -1058 | 0
2 | -529 | 0
2 | -264 | -1
2 | -132 | 0
2 | -66 | 0
2 | -33 | 0
2 | -16 | 1
2 | -8 | 0
2 | -4 | 0
2 | -2 | 0
2 | -1 | 0
2 | 0 | -1
Now, we will write the remainders from the bottom
"(-2116)_{10}= 100001000100_2"
If decimal is positive then 0 and if it is negative then it will be 1.
Comments
Leave a comment