Paradox
Paradox

Reputation: 353

Converting decimal number into 2's complement using 16 bits

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

Answers (1)

evgeny
evgeny

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

Related Questions