Sunday, February 15, 2009

Subconscious Binary to Decimal conversion and vice versa

Here is a quick tip to do Binary to Decimal conversion and vice versa in your subconscious mind without using any external tools.

Binary is a base 2 system, which means there is either zero or one.

Converting from Decimal to Binary :

Step 1:

First lets convert a decimal number 23 to binary. We are trying to split the number 23 in the following buckets from left to right.

16

8

4

2

1

Step 2:

Starting with the first bucket, how many 16’s are in 23, which would be one and the remaining would be 7, fill in the buckets with either 1 or 0, and keep subtracting as you go. Now we got the binary equivalent of 23

1

0

1

1

1

Converting from Binary to Decimal:

Here is a binary number, lets try to convert to decimal

0

1

1

1

0

Step 1:

We are trying to add up for every 1’s using the following template in the following buckets from left to right.

16

8

4

2

1

Step 2:

There is one 8 + one 4 + one 2 = 14

No comments:

Post a Comment