How do computers do math? I mean, it seems kinda like the math part is the most basic of the functions of the computer.(adsbygoogle = window.adsbygoogle || []).push({});

But I mean, how does it KNOW that 1+1=2?

To give a background, I understand binary: 1+1=10. I have a rudimentary understanding of assembly, I tried to program in it many years ago, so I could look at this:

mov ax, 1

add ax, 1

But how does that add 1 into ax, and then have the value of 2? (or b10).

I can almost see how like shl, and shr (is that square and square root?) can work, but shifting the bits, but not adding, etc.

I'm assuming the microchip (x86?) has to be preprogrammed to know the order of numbers.. But I have no clue. May someone shed light on this?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How do computers add,subtract,etc?

Loading...

Similar Threads - computers subtract | Date |
---|---|

Amount of computing power needed for whole-brain emulation? | Monday at 8:39 PM |

Why can't my computer detect my disk anymore? | Feb 6, 2018 |

Blue computer screen? | Feb 2, 2018 |

Meltdown and Spectre - Every computer/phone at risk | Jan 4, 2018 |

Subtracting numbers in two different txt files | Jan 14, 2013 |

**Physics Forums - The Fusion of Science and Community**