Jump to content

Calculation

Featured Replies

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.

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.

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.