What is the 2s complement of 0x3D9E?

  • Thread starter Thread starter Tjvelcro
  • Start date Start date
AI Thread Summary
The discussion centers on finding the 2's complement of the hexadecimal number 0x3D9E. The initial calculation involves subtracting 0x3D9E from FFFF, resulting in C261. A participant questions whether to add one after this step, recalling the method of reversing bits and adding one. Another contributor clarifies that the calculation performed was for 16's complement, not 2's complement, and confirms that adding one is necessary to obtain the correct answer. The final answer is C262 after the addition.
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.
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top