### What does the original, inverse, and complement mean in a computer

Signed numbers, which have three representations, namely, original, inverse, and complement.

In computer systems, values are always represented and stored in complement.

In a computer system, the original code and the inverse code, are not present.

＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

The value 0, in an eight-bit machine, is 00000000.

+1, that is, plus one, that is: 00000001.

+2, that is, plus one, that is: 00000010.

The other positive numbers, in order to increment it.

The last is +127, which is: 01111111.

——- —-

Negative numbers, that is, subtracting from 0 downwards.

Then, -1 is 00000000-1, and the result of taking eight digits,

is: 11111111 = 255 (decimal).

Similarly, -2 is 11111110=254.

The other negative numbers, in descending order, are sufficient.

The other negative numbers, in descending order, are sufficient.

The last is -128, which is: 10000000 = 128.

The above, is the numerical value, which exists as the complement in the computer.

To find the complement of a negative number, the formula is: [256 + this negative number].

If you need binary, transform it yourself.

＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

With the help of the complement, it is possible to convert a subtraction, into an addition operation.

This allows: simplifying the hardware of the computer.

E.g.: 59-31=28.

In a computer, the operation of addition with the complement is as follows:

59’s complement = 00111011

-31’s complement = 11100001

– Sum ——— —-

Gain: (1) 00011100 = 28’s complement

Keeping eight bits, the result is exactly correct.

This implements the subtraction operation.

Neither the original code, nor the inverse code, does this.

So, in computers, there is no such thing as an original code or an inverse code.

### How to represent the computer original code inverse code complement

In computer systems, numerical values, invariably, are represented and stored in complement.

The original code and the inverse code, in the computer, do not exist.

So, as long as you master the “complement and value” of the interchange, it is enough.

——— ——–

Each bit of the complement corresponds to a decimal number.

It is important to note: the first bit of the complement, represents [a negative value].

——— ——–

For example, the eight-bit complement is: 11001001.

It means that it represents the value: -128+64+8+1=-55.

—– ———- —

What if, for example, the first digit is 0? For example, 01001001.

It represents the value: 64+8+1=+73.

＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

After you have mastered the conversion of the “complementary code to the value”, it will be easy to do the opposite.

Topic: -125’s eight’s complement, what is it?

Solution:

Determine the first digit first.

It’s negative, the first bit should be 1 and represent -128.

The rest of the numeric bits, then, should be 3, which is 11 in binary.

Written together, that’s 10,000,011.

＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

The complements and the numeric values, which are directly, can be converted to each other.

There’s no need for the “original inverse plus one. It’s a mess.”

The foreigners are not good at math, and their brains are so bad that they invented this crap.

But none of this, in a computer, is useful.