Page 26 - iPlus_Ver_2.0_class_7
P. 26

The  hexadecimal  number  system  has  made  the  representation  of  large  values  easy.  The
                  hexadecimal numbers are used to represent colours on a webpage, that's why programmers
                  now prefer hexadecimal numbers. Some examples of colour code are:

                      Red: #FF0000         Green: #00FF00         Blue: #0000FF

                   i +   DECIMAL TO BINARY CONVERSION

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

                  Step 1:   Divide the number to be converted by 2 while keeping track of the  2   63              0
                            quotient and remainder.                                                     2   31     1
                  Step 2:   Continue dividing the quotient by 2 until you get a quotient of 0.          2   15     1

                  Step 3:   Then write the remainder in the reverse order.                              2    7     1

                  Example: (126)                                                                        2    3     1
                                 10
                          The binary equivalent of 126 is 1111110 or (126)  = (1111110)                       1    1
                                                                             10             2

                                                                                     #Problem Solving & Logical Reasoning
                        Let’s CatCh Up


                    Convert (26)  to a binary number and write answer below.
                                  10
                    _______________________________________________________________________________________________



                   i +   BINARY TO DECIMAL CONVERSION


                  To convert a binary number into a decimal number, follow the given steps:
                  Step 1:   Multiply each digit of the binary number by 2 to the power of n, where n is the position
                            of the digit starting from 0 on the right.

                  Step 2:   Add the result.
                  Example: Convert (101001)  to decimal number.
                                              2
                                   4
                                                               1
                          5
                                            3
                                                      2
                  = 1 × 2  + 0 × 2  + 1 × 2  + 0 × 2  + 0 × 2  + 1 × 2   0
                  Sum of the products = 32 + 0 + 8 + 0 + 0 + 1 = 41
                  Therefore, (101001)  = (41)
                                      2       10
                   i +   OPERATIONS ON BINARY NUMBERS

                  We can perform various operations on binary numbers. Let's discuss binary addition and binary
                  subtraction in detail.

                  Binary Addition

                  Binary addition is similar to the addition of decimal numbers. When the value of addition exceeds
                  the value 1, say 10 or 11, then 1 is carried over to the left of the current position.



                    24
                         iPlus (Ver. 2.0)-VII
   21   22   23   24   25   26   27   28   29   30   31