Skip to main content

Convert Decimal to Binary and Octal

Complement of a Number   Number System   Types of Number system

In our previous article, we had discussed Convert any number into Decimal Number. Now, In this article we can easily understand how to convert Decimal Number into other Number

Note : The Rule is very simple. Any number which you want convert Decimal to required format. Just divide by its base to this number and remainder is taken from bottom to top. Let’s understand with some examples

Convert Decimal to Binary

Ex 1. Convert (41)10 into Binary Number

Sol. 41 is divide by 2 because the base of binary number is 2

      Integer quotient   Quotient     Remainder

       41 / 2                      20                     1

       20 / 2                      10                     0

       10 / 2                      5                       0

       5 / 2                        2                       1

       2 / 2                        1                       0

       1 / 2                        0                       1

Remainder should be taken from bottom

The Answer is (101001)2

 

Ex2. Convert (153)10  into Octal Number

Sol. 153 is divided by 8 because the base of octal is 8.

      Integer quotient   Quotient     Remainder

      153 / 8                      19                     1

      19 / 8                         2                      3

      2 / 8                           0                      2

Remainder should be taken from bottom

The Answer is (231)8

Note: The above examples are of without decimal point. Now let’s discuss some examples with Decimal point. The rule is little bit different. In above examples, we have divided the numbers by its corresponding base, but if a number has decimal point, then after decimal point the number is multiplied by its base.  The number should be taken from Top to Bottom. Let’s understand with an example.

Ex 3. Convert (0.6875)10 into Binary Number

Sol. The number is multiplied by 2 because the base of binary number is 2

       Number                       Integer     fraction     cofficient

        0.6875 * 2 = 1.3750 =     1    +     0.3750           1

        0.3750 * 2 = 0.7500 =     0    +     0.7500           0

        0.7500 * 2 = 1.5000 =     1    +     0.5000           1

        0.5000 * 2 = 1.0000 =     1    +     0.0000           1

The Answer is (0.1011)2

Ex 4. Convert (0.513)10 into Octal Number

Sol. The number is multiplied by 8 because the base of binary number is 8

       Number                     Integer   fraction   cofficient

        0.513 * 8 = 4.104 =     4    +     0.104           4

        0.104 * 8 = 0.832 =     0    +     0.832           0

        0.832 * 8 = 6.656 =     6    +     0.656           6

        0.656 * 8 = 5.248 =     5    +     0.248           5

        0.248 * 8 = 1.984 =     1    +     0.984           1

This is an infinite sequence because it is not ended at a certain position. Now we should stop them after some multiplications and answer should be written as

(0.40651….)8

The Conversion of decimal numbers with both integer and fraction parts is done by converting the integer and fraction separately and then combining the two answers together. Using the results of Example 1 and 3

(41.6875)10 = (101001.1011)2

From Examples 2 and 4, we have

(153.513)10 = (231.206517)8

From above examples it is cleared that we can solve the decimal number, by solving integer and fractional part separately and at last we should merge them to get final answer.

Exercise:

Convert the following Decimal Number

1.       Convert (8702)10 to Binary

2.       Convert (99852.5)10 to Binary

3.       Convert (654)10 to Octal

4.       Convert (1150.51)10 to Octal

5.       Convert (1111)10 to Binary


Comments

Popular posts from this blog

Rules of divisibility part -1

Rules of divisibility In Vedic mathematics, it can be determined whether any part of any other number can be given completely without dividing it by several methods. These methods are based on the law of divisibility. By using these rules, calculations related to factors, parts etc. are simplified. Law of divisibility by number 2 :- If unit digit of given number is divisible by 2 then the given number is divisible by 2 also.                                                                 or  If unit digit of given number is 0,2,4,6 or 8 , then given number is divisible by 2. Example :- 10 ,32 ,74 ,108 ,2058 etc. Law of divisibility by number 3 :- If the sum of digits of given number is divisible by 3, then the number is divisible by 3 also. Illustration 1:-  In 546532 sum of digits=5+4+6+5+3+2=25 25 is not divisible by 3, Hence the number 546532 is not divisible by 3. Illustration 2:-  In  287286 sum of digits=2+8+7+2+8+6=33 33 is divisible by 3, Hence the number 287286 is divisibl

Octal and Hexadecimal Number

Complement of a Number    Types of Number system    Convert Decimal to Binary If you are new to this article, I strongly recommend to read our previous article before preceding this. In our previous article, we had already seen that binary number has a base of 2. It means that binary number contains 2 1 = 2 combinations which are 0 and 1. Similarly, Octal and Hexadecimal number has a fixed number of combinations. As we earlier know that octal has a base 8, then it contains 8 digits through 0 to 7 which means 2 3 =8 combinations and Hexadecimal has a base 16 which means it has 2 4 =16 combinations.                 If you are focusing on a sequence i.e. octal, hexadecimal. They are the combinations of increasing power of 2. Octal – 2 3 , Hexadecimal - 2 4 This power indicates how many bits are in a number for a particular number system Octal has 3 bits Hexadecimal has 4 bits This can be clear understand by following diagram-   Explain – In this diagram, first we co

Hunters of the Animal World

    In the cycle of life, predators always occupy an important position. They are killers. But they kill, only to 'kill' their hunger. In fact, the story of the animal kingdom is full of predators trying to catch prey, and the prey trying to outwit predators. It is the balance between the two that takes the drama of life forward. In the wild, there is no place for the weak, whether it's the predator or the prey, and only the fittest survives. The hunters keep populations healthy by weeding out the old and the sick. Of course, there are also creatures that steal the prey caught by others, like hyenas.      We have collected information about some animals for which you must know. 1 . Bengal Tigers : The Bengal Tiger is found in the rainforests and grasslands of Bangladesh, Bhutan Burma, China, India and Nepal. Bengal tigers are extremely large, and the males are up to 3 meters in length. The Bengal tiger's fur is orange brown, with black stripes. It hunts deer, pigs, a