Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 13 - 2609_Logiccode
P. 13

    Tick ( ) if you know this.

                          ▶   A hexadecimal number system is made up of sixteen symbols, 0 to 9, and A to F.
                          ▶  Number system is  a method of counting and representing numbers.

                               CONVERSION OF DECIMAL TO BINARY

                     To convert a decimal number into a binary number, follow the given steps:
                     Step  1    Divide the decimal number by 2 while keeping track of the quotient and remainder.

                     Step  2    Continue dividing the quotient by 2 until you get a quotient of less than 2.

                     Step  3    Then write the remainder in the reverse order (from bottom to top) to obtain the binary
                              equivalent.
                     Example: Convert the (126)  to binary number.
                                                 10
                                                                2  126
                                                                2   63     0
                                                                2   31      1

                                                                2   15      1
                                                                2    7      1

                                                                2    3      1
                                                                      1     1

                     The binary equivalent of 126 is 1111110 or (126)  = (1111110) 2
                                                                    10

                               CONVERSION OF BINARY TO DECIMAL

                     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 up all the resulting products. This sum gives you the decimal number.

                     Example: Convert (101001)  to decimal number.
                                                 2
                           5
                                                  2
                                          3
                                   4
                                                           1
                     = 1 x 2  + 0 x 2  + 1 x 2  + 0 x 2  + 0 x 2  + 1 x 2 0
                     Sum of the products = 32 + 0 + 8 + 0 + 0 + 1 = 41
                     Therefore, (101001)  = (41) 10
                                         2

                                                                                                      Number System   11

| 8 9 10 11 12 13 14 15 16 17 18 |