Complement of Numbers in Digital Electronics
Introduction In digital electronics, the concept of complements plays an important role in performing arithmetic operations, representing negative numbers, and simplifying circuit design. Complements are alternative representations of numbers that make it possible to carry out subtraction by addition, which is much easier to implement in hardware. They are also used in error detection techniques. There are two types of complements generally considered for any number system with base r : (r – 1)’s complement, known as the diminished radix complement r’s complement, known as the radix complement Depending on the base of the number system, these complements take different forms such as 9’s and 10’s complements for decimal numbers, 1’s and 2’s complements for binary numbers, and 15’s and 16’s complements for hexadecimal numbers. Complements in the Binary System (Base 2) 1’s Complement The 1’s complement of a binary number is obtained by replacing every 0 with 1 and every 1 ...