What is the 2s complement of 0x3D9E?

  • Thread starter Thread starter Tjvelcro
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
Tjvelcro
Messages
16
Reaction score
0

Homework Statement



Which is 2s complement of 0x3D9E

a) BD9F
b) BDA0
c) C262
d) 3D9E

Homework Equations



I believe I subract each digit from F

The Attempt at a Solution



FFFF
-3D9E
______
C261

Someone in my class said the answer was c) but do I still add one? I remember the saying "reverse the bits and and one" does that still apply?

Tjvelcro
 
Physics news on Phys.org
You are computing 16's complement, not twos complement. And yes, you add 1 at the end to get the answer.