Unsigned vs Signed byte numbers

  • Thread starter Thread starter ckaiser813
  • Start date Start date
  • Tags Tags
    Numbers
AI Thread Summary
The binary number 11111111 is correctly interpreted as 255 in unsigned decimal and -1 in signed decimal using two's complement. The conversion process involves inverting the bits and adding one to determine the signed value. This confirms the accuracy of the interpretation provided. The discussion clarifies the method for converting binary numbers into decimal formats. Understanding these conversions is essential for working with binary data in computing.
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
 

Similar threads

Replies
7
Views
3K
Replies
8
Views
2K
Replies
4
Views
3K
Replies
17
Views
3K
Back
Top