1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Unsigned vs Signed byte numbers

  1. Jul 9, 2009 #1
    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.
  2. jcsd
  3. Jul 9, 2009 #2


    User Avatar
    Science Advisor
    Homework Helper

    Assuming the machine uses twos complement - yes
  4. Jul 9, 2009 #3
    yeah it is thanks for the help
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook