Jump to content

Recommended Posts

Posted

How do calculators (and computers) add ,subtract etc.? I know it is done through code but how? I shall be grateful if someone helps me understand these very basic ideas.

Posted

The numbers are converted into a binary number, these can then be mathematically manipulated using logic gates...

 

Most of the time computers only have adding circuits, and use clever number systems so adding 2 numbers of a set form, can do the same as subtracting them.

 

Have a look in wikipedia at logic gates, binary, and two's complement.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.