What is Two's complement?

The usual binary representation of negative integers. Inverting all bits and adding 1 negates a number. n bits cover −2ⁿ⁻¹ to 2ⁿ⁻¹ − 1, and the same adder can be used for subtraction.

Field: Logic circuits

Two's complement in the explanations

Questions that mention Two's complement (4)

  1. Which bit pattern represents −1 in 4-bit two's complement?
  2. What range of integers can be represented in 8-bit two's complement?
  3. When adding two's complement numbers, which condition indicates that an overflow has occurred?
  4. Which correctly describes the "offset binary" code used in ADCs that handle both positive and negative voltages?

Related terms

Yield Clock skew Combinational circuit De Morgan's theorem Decoder Flip-flop Full adder Glitch Gray code Hold time

Back to the glossary