Reputation: 353
The problem:
What is the decimal number -234 in 2's complement using 16 bits?
Do I just have to convert 234 to binary?
Upvotes: 0
Views: 4744
Reputation: 2584
Yes, converting it to binary is sufficient. The answer is 0xff16
.
Also, you can try using WolframAlpha to verify your calculations.
Upvotes: 1