- Tech know how online


The complement is a mathematical function of the inverse, the opposite. The complement always corresponds to the number which, when added to another number of a number system, corresponds to the base of the number system. For example, in the decimal system, which is based on the base 10, the complement of the number 8 is 2, or the complement of the number 3 is 7.

Ininformation technology, the complement is used to represent negative numbers, allowing a subtraction of binary numbers to be traced back to an addition. For this application, computers work with the ones complement and the twos complement.

In addition to the complements of dual numbers, the base of number systems, which is "2" in the dual system, "10" in the decimal system, "8" in the octal system, and "16" in the hexadecimal system, can also be complemented. This is called the complement of ten or the complement of sixteen.

Determination of a complement of ten

Determination of a complement of ten

When forming negative numbers, the exponent is reduced by one digit and thus the result is divided into two equal parts of which one part represents the positive values, the other the negative values. In the hexadecimal system, there is a value range from "0" to 65.535. If this is divided by the described procedure into two equal value ranges, the one from "0" to 32.767 and the one from 32.768 to 65.535, then the positive numbers from "0" to +32.767 can be assigned to the first value range and the negative numbers from "0" to -32.768 to the second. Only the 16th bit is used for differentiation.

Englisch: complement
Updated at: 26.02.2014
#Words: 250
Links: system, decimal system, binary, application (app), indium (In)
Translations: DE

All rights reserved DATACOM Buchverlag GmbH © 2024