Binary Numbers
A binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Radix is basically another term for the base.
The decimal digits are 0,1,2,3,4,5,6,7,8,9.
Each digit is referred to as a bit.
If the total binary digit is 1 then it is called bit.
If the total binary digits are 4 then it is called nibble.
If the total binary digits are 8 then it is called byte.
The decimal digits are 0,1,2,3,4,5,6,7,8,9.
Each digit is referred to as a bit.
If the total binary digit is 1 then it is called bit.
If the total binary digits are 4 then it is called nibble.
If the total binary digits are 8 then it is called byte.
Conversion of a decimal number into binary form :
- Let there be a number, say, 42. Now we know that binary digit places are the powers of 2
- Now, 26 25 24 23 22 21 20
64 32 16 8 4 2 1
3. Now 42 < 64 so subtract 32 from 42 as 42 > 32.
4. 42 - 32 = 10.
5. Now 10>8 so 10-8 = 2.
6. Now 2-2 = 0
7. Since 32, 8, 2, are the only numbers to be used so mark them as 1 and the rest as 0
8. So after marking them in the above table
26 25 24 23 22 21 20
0 1 0 1 0 1 0
Therefore the binary digits of the number 42 will be 101010
Comments
Post a Comment