Today I will teach you how to convert number?
There are four types of number system as
Decimal number(Base number 10),Binary number(Base number 2), Octal number (Base number 8),
Hexadecimal number (Base number 16).
Among them only the decimal number which base is 10 can understand people.
and other system is hard to verify .
Now came to the point.
$$ Decimal & Binary $$
Decimal to Binary
To convert a decimal number first chack is this Full or fraction?
if finite follow the system.
To convert a finite decimal number divide again and again by 2 unless it became zero.
See the photos to understand.
If the number is fraction. fillow the rules..
To convert fraction number Multiple again and again by 2 unless it became zero in fraction part.
see the photos to understand.
Binary to Decimal
To convert Binary number into a decimal number ,you need to know the local value of number.
First count the binary number then set the local value..
The local value will be the power of the binary base 2.
Then by adding all value can make a decimal number.
see below to clear.
$$ Decimal & Octal $$
Decimal to Octal
To convert decimal number into octal number as like first
chack that what type number this.full or fraction?
If Full ,follow the rules..
To convert full number into octal divide again and again
by 8 unless it became zero.For understand clearly see the photos.
If the number fraction ,then multiple again and again by 8 unless it became 0.
The last share is the Most significant bit and the first share is the Least significant bit.see the photos to understand.
Octal to Decimal
As like binary in this section you also need to set the local value.
which will be the power of the octal base 8.to understand see below;;
$$ Decimal & Hexa decimal $$
Decimal to Hexa decimal
As like before ,If the number is finite.
Divide the number again and again by the base number of hexa decimal which is 16
unless it became zero.
If the number is fraction. then multiple again and again by 16 unless it became zero.
See the photos for clear.
Hexa decimal to Decimal
As like before first count digit number to set the local value.
And then the local value will be the power of the base of hexadecimal.
By adding all value can make decimal number.
Here is source to recharge your knowledge.
| Decimal system | Binary system | Octal system | Hexadecimal system |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 6 | 110 | 6 | 6 |
| 7 | 111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 16 | 10001 | 21 | 11 |