Decimal Numbers.
Decimal numbers are the numbers what we use in daily life for counting. Since human hans consist of ten fingers, we use multiples of tens for counting.
It consist of zero and set of whole numbers(1, 2, 3, ........9) .
.....107+106+105+104+103+102+101+100
These digits and multiples of ten can represent any value, for example:
754.
digit x multiples of Ten
7 x 100(102) = 700
5 x 10(101) = 50
4 x 1(100) = 4
---------------
754
---------------
Note: Any number to the power of zero is 1. Ex:
Like humans, machines cannot understand the decimal number system. The machines, robots and computers only understands the two digit number system, known as Binary system. It consist of two digits only. First is "1" and second is "0".
First digit "1" represents that the logic is "high" or "on" or "true" or "yes".
The second digit "0" represents the logic is "low" or "off" or "false" or "no".
Since it has only two digits, the system consist of multiples of two, and through this multiple combination, any number can be generated. For example :
(lets take an example of 8 bit)
Sl no
|
4(22)
|
2(21)
|
1(20)
|
#0
|
0
|
0
|
0
|
#1
|
0
|
0
|
1
|
#2
|
0
|
1
|
0
|
#3
|
0
|
1
|
1
|
#4
|
1
|
0
|
0
|
#5
|
1
|
0
|
1
|
#6
|
1
|
1
|
0
|
#7
|
1
|
1
|
1
|
Now lets have a look at the above table. For newbie's or beginners who cant able to figure out these weird 1's and 0's. just look for the 0's in the first row.
Sl no
|
4(22)
|
2(21)
|
1(20)
|
#0
|
0
|
0
|
0
|
Everything in the row is zero corresponding to every column. That means....
4x0 + 2x0 + 1x0 = ?
0 + 0 + 0 = 0
Step 2 :
Lets looks at the second row. The row in which the 1's reside is taken into account.
Sl no
|
4(22)
|
2(21)
|
1(20)
|
#1
|
0
|
0
|
1
|
4x0 + 2x0 + 1x1 = ?
0 + 0 + 1 = 1
Step 3 :
Lets looks at the third row. The row in which the 1's reside is taken into account.
Sl no
|
4(22)
|
2(21)
|
1(20)
|
#2
|
0
|
1
|
0
|
4x0 + 2x1 + 1x0 = ?
0 + 2 + 0 = 2
Step 4 :
Lets looks at the last row.
Sl no
|
4(22)
|
2(21)
|
1(20)
|
#7
|
1
|
1
|
1
|
4x1 + 2x1 + 1x1 = ?
4 + 2 + 1 = 7
Best of Luck
Lets play a Binary game to understand it better.
Steps to start the game.
step 1: Start the new game.
step 2: start the round.
step 3: look for the decimal number and try to click on corresponding number which when added together gives the decimal value.
note: you can awitch your changes from 1-0 or 0-1 anytime. Try to solve it intime.
Best of Luck