Sign magnitude/1's Complement/2's Complement

  • Thread starter Thread starter JWest
  • Start date Start date
  • Tags Tags
    Sign
Click For Summary
SUMMARY

The discussion focuses on the representation of numbers in a 12-bit machine using Sign Magnitude format. The lowest number represented is -2047, while the highest is 2047, calculated using the formula for signed integer ranges. Additionally, the bit pattern "101001010010" corresponds to the decimal value -594 when interpreted in Sign Magnitude format.

PREREQUISITES
  • Understanding of binary number systems
  • Knowledge of Sign Magnitude representation
  • Familiarity with signed integer ranges
  • Basic arithmetic operations with binary numbers
NEXT STEPS
  • Study the differences between Sign Magnitude, 1's Complement, and 2's Complement representations
  • Learn how to convert binary numbers to decimal and vice versa
  • Explore the implications of using different number representations in computer architecture
  • Investigate overflow and underflow conditions in signed number representations
USEFUL FOR

Students in computer science, engineers working with low-level programming, and anyone interested in understanding binary number representations and their applications in computing.

JWest
Messages
12
Reaction score
0

Homework Statement



a.) What is the lowest number represented by a 12-bit machine using Sign Magnitude?

b.) What is the largest?

c.) What decimal number does the bit pattern "101001010010" represent?

Homework Equations



For a and b:

Signed integer ranges for N bits (I don't know if this is what I need to use):

Lowest: -[2^(N-1) - 1]

Highest: [2^(N-1) - 1]

The Attempt at a Solution



a.) -[2^(N-1) - 1]
-[2^(12-1) - 1]
-[2^(11) - 1]
-[2048 - 1]
-[2047]

b.) [2^(N-1) - 1]
[2^(12-1) - 1]
[2^(11) - 1]
[2048 - 1]
[2047]

c.) Bit pattern: 101001010010
Signed Magnitude: 101001010010b
= -01001010010b
= -[(2^9) + (2^6) + (2^4) + (2^1)]
= -[512 + 64 + 16 + 2]
= -[594]
= -594d
 
Physics news on Phys.org

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
9
Views
2K
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K