Unsigned vs Signed byte numbers

  • Thread starter ckaiser813
  • Start date
  • #1
14
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.
 

Answers and Replies

  • #2
mgb_phys
Science Advisor
Homework Helper
7,819
14
Assuming the machine uses twos complement - yes
 
  • #3
14
0
yeah it is thanks for the help
 

Related Threads on Unsigned vs Signed byte numbers

Replies
4
Views
477
  • Last Post
Replies
2
Views
8K
Replies
1
Views
18K
  • Last Post
Replies
3
Views
9K
Replies
4
Views
2K
  • Last Post
Replies
4
Views
6K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
16K
  • Last Post
Replies
5
Views
1K
Top