Page 13 - TP_Play_V2.1_class8
P. 13

DECIMAL TO BINARY CONVERSION

                 To convert a decimal number into a binary number, follow these steps:

                 Step 1   Divide the decimal number by 2 (the base of the binary number system).

                 Step 2   Note down the quotient and the remainder.
                 Step 3   Divide the quotient obtained again by 2 and note down the resulting quotient and remainder.

                 Step 4   Repeat the procedure till you reach a quotient less than 2.

                 Step 5    Arrange the final quotient and all remainders in reverse order (from bottom to top) to
                         get the binary number.

                 Look at the given examples to understand the conversion better.

                 Example 1: Convert the (26)  to binary.
                                               10

                                   2  26
                                   2   13    0      The binary equivalent of (26)  is 11010
                                                                                   10
                                   2    6    1      In other words, (26)  = (11010)    2
                                                                         10
                                   2    3     0

                                        1    1
                                                    Start  listing  the  last  quotient  and  all  the
                                                    remainders from here.


                 Example 2: Convert the (64)  to binary number.
                                               10

                        2  64
                        2  32            0

                        2  16            0                                       The decimal number system
                                                                                  is based on ten digits, likely
                        2    8            0      (64)  = (1000000)
                                                     10              2           influenced by the number of
                        2    4            0                                             human fingers.

                        2    2            0
                             1            0



                    BINARY TO DECIMAL CONVERSION

                 To convert a binary number into a decimal number, follow these steps:

                 Step 1   Start from the right-most digit and count the power of 2 from right to left, starting
                         from 0.

                 Step 2   While doing so, multiply each digit by 2 raised to a particular power. The powers of 2
                         start from 0 and increase to 1, 2, and so on as you move towards left.


                                                                                            Number System         11
   8   9   10   11   12   13   14   15   16   17   18