two's complement

a) The number obtained by complementing every bit of a given number and adding one. A number and its complement add to 2, where n is the word size of the machine.

The twos complement of 0xAAAA is 0x5556 on a 16-bit machine, and 0xFFFF5556 on a 32-bit machine.

b) The convention by which bit patterns with high bit 0 represent positive numbers from 0 to directly, while bit patterns with high bit 1 represent negative numbers from -1 to , n being the word size of the machine, and the numeric complement of a number is its twos complement.

Nearly all modern computers use twos complement for integer arithmetic.

See Also: complement, radix complement, numeric complement, ones complement

Wikipedia foundation.

Look at other dictionaries:

  • Two's Complement —   [dt. »Zweierkomplement«], Komplement …   Universal-Lexikon

  • Two's complement — The two s complement of a binary number is defined as the value obtained by subtracting the number from a large power of two (specifically, from 2 N for an N bit two s complement).A two s complement system or two s complement arithmetic is a… …   Wikipedia

  • two's complement — papildomasis dvejetainis kodas statusas T sritis automatika atitikmenys: angl. complement on two; two s complement; twos complement vok. Zweierkomplement, n rus. дополнительный код двоичного числа, m pranc. complément â deux, m …   Automatikos terminų žodynas

  • Two's Complement — Das Zweierkomplement (auch 2 Komplement, Zweikomplement, B(inär) Komplement, Basiskomplement, two s complement) ist eine arithmetische Operation auf Dualzahlen. Dabei werden zunächst alle Ziffern bzw. Bits negiert, das heißt aus 0 wird 1 und… …   Deutsch Wikipedia

  • two's complement — noun Date: 1958 the negative of a binary number represented by switching all ones to zeros and all zeros to ones and then adding one to the result …   New Collegiate Dictionary

  • Complement (mathematics) — Complement has a variety of uses in mathematics:* complement, an operation that transforms an integer into its additive inverse, useful for subtracting numbers when only addition is possible, or is easier * complement, a system for working with… …   Wikipedia

  • complement / compliment —    Complement means to supplement or make complete : Their two personalities complement each other.    Compliment means to praise or congratulate : She received a compliment on her sense of fashion …   Confused words

  • Complement — In many different fields, the complement of X is something that together with X makes a complete whole something that supplies what X lacks. Complement may refer to: Complement (linguistics), a word or phrase having a particular syntactic role… …   Wikipedia

  • complement on two — papildomasis dvejetainis kodas statusas T sritis automatika atitikmenys: angl. complement on two; two s complement; twos complement vok. Zweierkomplement, n rus. дополнительный код двоичного числа, m pranc. complément â deux, m …   Automatikos terminų žodynas

  • complément â deux — papildomasis dvejetainis kodas statusas T sritis automatika atitikmenys: angl. complement on two; two s complement; twos complement vok. Zweierkomplement, n rus. дополнительный код двоичного числа, m pranc. complément â deux, m …   Automatikos terminų žodynas

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.