Showing posts with label Digital Electronics. Show all posts
Showing posts with label Digital Electronics. Show all posts

Wednesday, December 26, 2012

2's complement

No comments:


In mathematics, negative numbers in any base are represented by prefixing them with a − sign (negative sign). However, in computer hardware, numbers are represented in binary without any extra symbols, requiring a method of encoding the minus sign. In computing, 2's complement is one of the method to represent the negative numbers. 2's complement is dominant today. We can also represent negative numbers using 1's complement. 

1's Complement

No comments:

In mathematics, negative numbers in any base are represented by prefixing them with a − sign (negative sign). However, in computer hardware, numbers are represented in binary without any extra symbols, requiring a method of encoding the minus sign. In computing, 1's complement is one of the method to represent the negative numbers. However, 2's complement is dominant today. 1's complement could not have widespread use because of issues like negative zero, end-around borrow, etc.