That's how the computer talks. Can you understand Binary Number System ? zeros and ones !

This is again a miscellaneous post, fun to write about but it's very useful for any computer Geek. We have discussed so many times that Computer cannot understand stuffs like 1,2,3,... or A,B,C... etc, All it can understand is ones and zeros. That means that whatever we have a meaning for is translated into a series of zeros and ones. Called as Binary Numbers. Actually I am about to write about Bitwise Operators at my Newbie Programmer Series but before jumping we need to learn some basics about the Binary Number

The number system We Use is called as Decimal System. We sometimes also use Roman System. Computer has its own language which consists of zeros and ones which is called as Binary System. There are many other too, Hexadecimal, Octal etc But our focus is about Binary only.

Binary means two. As we have only two characters, zero and one to write.

Basically Binary system is the basic way of writing electronic logic as Zero means 'OFF' and One means 'ON'. To learn more about how electronic logic works, check out this link (click here).

There is one more meaning to binary system and that is that we use the Powers of '2' to describe all the numbers.

The part a geek is concentrated about is not the history of this system but how to play around with it and so I am. Let us learn how to convert a number into binary or vice versa.

### How to Convert a number ( decimal ) into Binary System ?

### How to Convert a Binary Number into Decimal ?

^{7}2

^{6}2

^{5}2

^{4}2

^{3}2

^{2}2

^{1}2

^{0}= ie. 128 64 32 16 8 4 2 1

^{7}i.e. 128 is enough.

128 + 16

= 144

So I simply added the numbers which were turned 'on' by the binary number.

Lets do another one. 101001. Its 6 digit long so sequence up to 2^{6} i.e. 32 is enough so :

32 16 8 4 2 1

1 0 1 0 0 1

32 + 8 + 1 = 41

Isn't that cool to ?!?!?!?!

Anyways that's all we need to learn about basic Binary System. In the next miscellaneous post, we will do Mathematical Reasoning, One of my favorite topics in maths that will show you how logic is possible with maths ! So stay connected.

Please share this as much as you can so that we can get connected with more and more people who want to learn programming.