Page 13 - Computer_Genius_v2.1_C7_flipbook
P. 13

Example 2: Convert the decimal number 64, i.e., (64)  to binary.
                                                                       10
                                                          2  64

                                                          2  32               0
                                                          2  16               0
                                                          2    8               0

                                                          2    4               0
                                                          2    2               0

                                                                1               0
                 The binary equivalent of (64)  is 1000000
                                              10
                 In other words, (64)  = (1000000)
                                     10             2
                 Binary to Decimal Conversion

                 To convert a binary number into a decimal number, follow these steps:
                    Start from the right-most digit known as the LSD before the fractional point, and move

                    leftwards.
                    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 leftwards.

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

                 The given examples will help you understand the conversion.
                 Example 1: Convert (1111)  to decimal number.
                                             2
                                                           1
                                          3
                                                   2
                                                                   0
                                 = 1 × 2  + 1 × 2  + 1 × 2  + 1 × 2
                                 = 8 + 4 + 2 + 1
                                      = 15
                            (  1111)  = (15)
                                  2       10
                 Example 2: Convert (10111)  to decimal number.
                                              2
                                                   2
                                           3
                                  4
                                                            1
                            =     1 × 2  + 0 × 2  + 1 × 2  + 1 × 2  + 1 + 2 0
                            =     16 + 0 + 4 + 2 + 1
                            =     23
                   (10111)  = (23)
                          2       10
                 Example 3: Convert (101.101)  to decimal number.
                                                2
                     Position          2           1           0                      –1          –2          –3

                    Face value         1           0           1           •           1          0           1

                     Weights           2 2         2 1        2 0                     2 –1       2 –2        2 –3





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