Search

It S A Binary World - How Computers Count.

It's A Binary World - How Computers Count.

Summary: Many have cursed their computer for taking things too literally! It's easy to blame the computer when something goes wrong.

You get to the checkout at the market, and the item you bought 'on special' comes up at the full price. The manager has to be called to fix it up, and what does he say? "We've been having problems with the computer, it gets the wrong price on some things."

You put in a list of addressess to your Word processor, and print off party invitations for ...

Article Body: Many have cursed their computer for taking things too literally! It's easy to blame the computer when something goes wrong.

You get to the checkout at the market, and the item you bought 'on special' comes up at the full price. The manager has to be called to fix it up, and what does he say? "We've been having problems with the computer, it gets the wrong price on some things."

You put in a list of addressess to your Word processor, and print off party invitations for next week. Then you find that today's date has been inserted in the signature block - by the computer!

Maybe you have heard the expression 'Garbage in Garbage out"? Someone, at some point instructed the computer to do what it did, It didn't decide to screw you up deliberately. Computers can only do what they are told, they are more logical than Spock and they take everything literally.

We are going to look at why they are so pedantic!

The world around us has many aspects which work in the same way as a computer. There are many examples of opposites, for instance Up and Down, Left and Right, Forwards and Backwards. A light may be On or Off, maybe it's Night or Day. Yes or No? You can think of many others. This system of two possible states is called a Binary System, if it's not one, it must be the other.

A computer uses the Binary System to perform all its functions, the basic unit, originally a vacuum tube, then a transistor, then a chip, is used thousands of times over to make the total unit. The light being On or Off which we mentioned above is controlled by a switch. In the computer this switch is a transistor, which is either On or Off.

Now we get to the Math! Don't worry, it's very simple Math! In fact it's so simple we only count up to . That's right, we can only have two states so we count from to . (That's another thing computers are pedantic about, they insist on starting at zero).

The Binary system is a Number System. You are familiar with the Decimal system which has numerals to (think like a computer comes first). You can make up all sorts of number systems for whatever purpose you want. You probably know about a dozen () and have also heard of a half dozen. If you've used your computer much you may have come across the Hexadecimal system. This one has 'numerals' -and A-F. Another number system used by computer people is the Octal system which has numerals, -.

Ok so how do we count with only and . Simple, in exactly the same way you count in decimal. The first ten numbers are OK, -, but what next? We start again but add in a making or "one, zero". This gets us to "one, nine" and we go to "two, zero", and so on up to "nine, nine" then we again add a to make - "one, zero, zero."

If you've followed me so far you are ready for the Binary sequence, it's much simpler. Starting off at zero we have , - and that's it. We follow the same rule and add in a , making "one,zero". Next come "one, one"; then "one, zero, zero"; -"one, zero, one"; etc. These are equivalent to Decimal ,,,,,. How does this relate to computers? That's next.

In our computer we have transistor switches, as described above. For the math example we just looked at, we need switches. These each represent a Binary Digit, or Bit. To represent a Decimal , these switches would be OFF,OFF,ON or . For a Decimal we would have ON,OFF,ON, or . By extension you can see that with switches we could go to or Decimal.

Another point to note is that each binary digit, or bit, has a value. Just as in Decimal we have units, tens, hundreds, etc. in Binary the values are ,,,,,,, etc. etc. The binary code mentioned above is thus +++=. If you wanted to work out what binary was in decimal, you could add up the individual values. In fact people who work on the basic machines need to know "machine code"! To them would be F in Hexadecimal or in octal.

This probably seems a very long-winded way to work out numbers, until you remember that these 'switches' can operate at nanosecond speed or ,,, times per second, large calculations become possible.

Thats probably enough to digest in one go. Next time we will look at how a computer adds and multiplies.

Shubham Ganeshwadi

Shubham Ganeshwadi

Hi, I’m Shubham Ganeshwadi, Your Blogging Journey Guide 🖋️. Writing, one blog post at a time, to inspire, inform, and ignite your curiosity. Join me as we explore the world through words and embark on a limitless adventure of knowledge and creativity. Let’s bring your thoughts to life on these digital pages. 🌟 #BloggingAdventures

Leave a comment

Your email address will not be published. Email is optional. Required fields are marked *

Your experience on this site will be improved by allowing cookies Cookie Policy