Understanding the Two's Complement System

  • Thread starter Thread starter ehrenfest
  • Start date Start date
  • Tags Tags
    System
Click For Summary
SUMMARY

The discussion clarifies the concept of the two's complement system, emphasizing its role in expressing negative numbers. It explains that for positive integers, such as 5, the two's complement system is not utilized; instead, the number is simply represented as is. The conversation also highlights the r's complement system, which is used to express negation in a specific radix, indicating that it only applies to negative representations. Overall, the two's complement system is defined as a method for representing negative values, while positive values are expressed directly.

PREREQUISITES
  • Understanding of number systems, specifically binary and radix systems
  • Familiarity with the concept of complements in mathematics
  • Knowledge of how to represent negative numbers in binary
  • Basic arithmetic operations in binary
NEXT STEPS
  • Study the mechanics of the two's complement representation in binary systems
  • Learn about the r's complement system and its applications in various radices
  • Explore the differences between two's complement and one's complement systems
  • Investigate practical applications of two's complement in computer architecture
USEFUL FOR

Students studying computer science, software engineers working with low-level programming, and anyone interested in digital systems and binary arithmetic.

ehrenfest
Messages
2,001
Reaction score
1

Homework Statement


let me check my understanding of what a twos complement

when you use the rs complement system that means you use that system to express negative numbers only; in order to express the rs complement of a number you take r^n - that number; however if the number you want to express is positive then you do not really use the twos complement system, so it is somewhat of a misnomer.

I mean that even if we are working in the two's complement system and we want to express 5 we do not take r^n - 5,we just write 5

does all that make sense


Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
r's complement

r's complement is a way to express negation in a given radix r, when the number of available digits is limited to n-1.

So, by obtaining r's complement, you're really obtaining a negative number.

So, obviously, it doesn't apply to positive numbers unless you want to turn them negative :)

A complement, in given radix, always behaves as a negative number as long as the number of digits you're considering is less than n.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
10K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
19K
  • · Replies 6 ·
Replies
6
Views
4K