Unsigned vs Signed byte numbers

  • Thread starter Thread starter ckaiser813
  • Start date Start date
  • Tags Tags
    Numbers
Click For Summary
SUMMARY

The discussion confirms that the binary number 11111111 represents 255 in unsigned decimal format and -1 in signed decimal format when using two's complement representation. The process involves inverting all bits and adding one to the least significant digit (LSD) for signed numbers. This method is standard in computing for representing negative values.

PREREQUISITES
  • Understanding of binary number systems
  • Knowledge of two's complement representation
  • Familiarity with signed and unsigned integers
  • Basic concepts of digital logic design
NEXT STEPS
  • Research the two's complement method in detail
  • Learn about the differences between signed and unsigned integers in programming languages
  • Explore binary arithmetic operations
  • Study how different systems handle overflow in signed and unsigned numbers
USEFUL FOR

This discussion is beneficial for computer science students, software developers, and anyone interested in understanding binary number representation and its implications in programming and digital systems.

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 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K