Unsigned vs Signed byte numbers

  • Thread starter Thread starter ckaiser813
  • Start date Start date
  • Tags Tags
    Numbers
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 7K views
ckaiser813
Messages
14
Reaction score
0
some one tell me if this is right

this is the binary number 11111111

unsigned = 255 (decimal)

signed = -1 (decimal)

is this correct because in my book it says to take the opposite so all 1's become 0's then you add 1 in the LSD.
 
Physics news on Phys.org
Assuming the machine uses twos complement - yes
 
yeah it is thanks for the help