Page 26 - iPro_trackGPT_V5_Class7
P. 26

DECIMAL TO BINARY CONVERSION

                  To convert a decimal number to binary, follow these steps:
                    ✶  Divide the decimal number by 2 (the base of the binary system).

                    ✶  Record the quotient and the remainder.
                    ✶  Divide the quotient obtained by 2 again, noting the new quotient and remainder.

                    ✶  Continue this process until the quotient is less than 2.
                    ✶  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 number.
                                                 10
                                    2  2 6
                                    2  1 3    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  6 4

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

                                          1 – 0
                     BINARY TO DECIMAL CONVERSION

                  To convert a binary number into a decimal number, follow the given steps:

                    ✶  Start from the right-most digit known as the LSD before the fractional point, and move
                        towards left.
                    ✶  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.

                    ✶  Add up all the resulting products. You will get your decimal number.

                  The following examples will help you understand the conversion.




                    24    TrackGPT iPRO (V5.0)-VII
   21   22   23   24   25   26   27   28   29   30   31