How do computers compare numbers?

493 views

Example: How does a computer know that 8 ist greater than 3?
Because it works in binary, how does it know that 1000 (8) is greater than 0011 (3)?

In: 2

8 Answers

Anonymous 0 Comments

Simple short answer – the ‘knowledge’ is programmed into them.

You can think of a computer(processor) as a physical object; eg a simple river that forks in two branches at any fork point. 1 branch is yes (1) the other one is no (0).Then you drop a duck and watch it go down.You set your rules before hand – the duck has this behaviour and if the duck is going down the yes branch, do this. Otherwise, do that.

We simply program a few basic rules in the computer and then play with those rules to create any behaviour we can think of.

You are viewing 1 out of 8 answers, click here to view all answers.