How does addition work in Computers?

后端 未结 2 922
小鲜肉
小鲜肉 2021-01-18 06:52

I was watching a video on computer architecture and a question came to my mind. How does addition and basic operations work on computers? I mean, i know that 2+2 = 4 but i d

相关标签:
2条回答
  • 2021-01-18 07:08

    At the "very bottom" numbers are just binary, and physical electronic hardware is used to perform the addition operation itself1 (where each bit in the number is represented by an on/off of the physical circuit line) - this is done by some variation of an an Adder circuit.

    For "how" the math works see Two's complement: Aritmetic, which is the most commonly used integer encoding. Conceptually such arithmetic is similar to that of other bases, such as base-10/decimal taught in school.


    1 Modern/conventional computers: there have been mechanical computers (at least insofar as 'calculating machines'), analog computers, and takes on quantum computers, etc.

    0 讨论(0)
  • 2021-01-18 07:22

    there are different adders and sub tractors which are which are connected thro' circuit. .full adder ,half adder is for different no range. all these adders are arranged such as in the form of o' and 1' for each digit there is binary bit code . its too easy .u will get it if u read it once

    0 讨论(0)
提交回复
热议问题