Converting decimal number into 2's complement using 16 bits
The 开发者_JAVA技巧problem:
What is the decimal number -234 in 2's complement using 16 bits?
Do I just have to convert 234 to binary?
Yes, converting it to binary is sufficient. The answer is 0xff16
.
Also, you can try using WolframAlpha to verify your calculations.
精彩评论