Random talk: Why do computers store data in two's complement?

Random talk: Why do computers store data in two's complement?

We know that computers only know 0 and 1 [why computers only know 0 and 1], the content in the real world, whether it is text, audio, video, etc., needs to be converted to binary if it wants to be stored, calculated or displayed by computer.

img

img

img

img

img

img

We know that computers only know 0 and 1 [why computers only know 0 and 1], the content in the real world, whether it is text, audio, video, etc., needs to be converted to binary if it wants to be stored, calculated or displayed by computer.

Just like the melody you just sang, it must be converted into binary if it wants to be stored in the computer.

Then, if the simplest number is to be expressed in a computer, it needs to be converted into binary by certain means. And this method we call encoding.

img

img

img

Guess you like

Origin blog.csdn.net/qq_43842093/article/details/132632385