About 0 & 1 – bit of a byte!

Number 10 represented in binary is 1010

Introduction

There is so much about 0 and 1’s in our lives with technology all around us! Wait a minute, what is zero and ones got to do with technology? And what do you mean by base? Well, the short answer is we count in base 10 or decimal system. And the digital devices operate on the binary system, base 2.

Ok, but why base 2? It all goes back to switches and they can only be in either of one position – on or off. From this concept, we get micro-chips which have small switches which can be in on or off position. This is how our programs  communicate to machines. When the switch is in off position we represent it as 0 and if it is on then 1.

In this updated article (originally written and posted in circa 2005), we will see how to have fun with zeros and ones and counting different bases other than the decimal base. We will also see the reason I give donations which are powers of 2.   

Bases

When we are asked to count we normally count start from 1 and then 2, 3, 4, 5, 6, 7, 8, 9, 10; which is natural. These numbers as shown below are called Natural Number Set. So called as it comes from counting our fingers. Now, we can also start counting from 0 and it goes as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 . We still get 10 digits and these are called Whole Number Set. By adding 0(zero) to the Natural number set we get Whole number set.

However, let us focus on the second way of counting i.e. using the Whole Number Set :

Units0123456789
Tens10+0=1010+1=1110+2=1210+3=1310+4=1410+5=1510+6=1610+7=1710+8=810+9=19
Twenties20+0x1=20212223242526272829
Decimal System to Base 10

The decimal system (base 10) is very popular as majority of humans have two hands with five digits on each hand. There are other bases we use in our daily lives like the clock which is 60 seconds make a 1 minute and 60 minutes to 1 hour is counting to base 60. And our calendar has 12 months to a year (base 12) while every week has 7 days (base 7) and so on.

Now in a calendar we have 12 months make one year. So the base for the year to change is after it hits a multiple of 12. This is shown below as we saw above for decimal system.

Units01234567891011
Tens12+0=1212+1=13141516171819202112+10=2212+11=23
Twenties24=24+024+1=25222324252627282924+10=3424+11=35
Monthly Base System to Base 12

As you can see we count using different bases without thinking about it or questioning about it. Of course, we can take something smaller than our decimal system base 10, say 8 and the table will look as below:

Units01234567
Tens8+0=88+1=9101112131415
Twenties16+0=1616+1=17181920212223
Octa System to Base 8

Bits

What are bits?

Binary digITS (BITS) is counting in base 2; but why would anyone be interested in that. Machines have can be in only two states i.e. ON or OFF. When the machine (or switch in the circuit) is off it is said to be 0 and when it is on then it said to be 1. However, this works very well with machines software programs are converted into bits which tells the machine to process the commands in the program. In fact, all of your documents, your information is stored on the hard drive of your computer in binary. Each character on your key board is represented in a binary notation on the machine. Machines only understand binary digits as they are basically looking at off or on position.

In this base 2, the counting as was done in the Bases section is shown:

Units01
Tens2+0=22+1=3
Twenties4+0=44+1=5
Thirties6+0=66+1=7
Binary System to Base 2

Hey, this is all good and kind of getting dense. Is it possible to represent a decimal number in one of the other bases? How? Yes, and we shall take the decimal number 783 and represent below.

The number 783 in the decimal system actually is written below:

DigitPowers of 10Total
Hundreds7x102=700
Tens8x101= 80
Zero-th3x100= 3
78310Total = 78310

In the decimal system, we are counting how many 10s, 100s, 1000s, 10000s etc. there are. Then we are multiplying the number depending on where it is positioned, and finally, we add them up.

If we were to do the same to the 8th base, then the above table will look as follows:

DigitPowers of 8Value
Thousands1x83=512
Hundreds4x82=216
Tens6x81=48
Zeroth7x80=7
14678Total = 78310

Now the number 78310 ~= 14678. This means that any number (like 783) can be written to any number base; even its own.

So in computers we are interested in binary digits, as the switches in circuits are either ON or OFF. With this in mind, the number above (783) would be written in binary form as follows:

1x29=512
1x28=256
0x27=0
0x26=0
0x25=0
0x24=0
1x23=8
1x22=4
1x21=2
1x20=1 
11000011112Total = 78310

This means that:

11000011112 ~=78310

So let us say you give your kids a check or cash for $32 which in binary is $100,0002 means you gave your kid an allowance of 100K in binary.

10 is binary and means 2 types of people! LOL

Summary

Bits are binary digits. Any decimal number can be converted into binary number or to any other positive integer base. The byte is a unit of digital information that most commonly consists of eight bits, representing a binary number.

Further Reading

  1. The history of zero is covered in a book by Amir Aczel titled “Finding Zero: A Mathematician’s Odyssey to Uncover the Origins of Numbers”.
This image has an empty alt attribute; its file name is BinarySimpleAs-1.jpg

Leave a comment

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

3 thoughts on “About 0 & 1 – bit of a byte!”