Page 18 - C_GPT _V4 _class_7
P. 18

Binary Subtraction

              In binary subtraction, a binary number of lower value is subtracted from the binary number of higher value.
              The given table explains the subtraction of digit Y from digit X. If Y is greater than X, then 1 is borrowed from
              the next position. When the binary digit 0 borrows 1 from the next most significant digit, it becomes 10.
                                X                   Y                               X – Y

                                0                   0                             0 – 0 = 0
                                0                   1               0 – 1 = 1 (borrow 1, so that 10 – 1 = 1)
                                1                   0                             1 – 0 = 1
                                1                   1                             1 – 1 = 0
              For example, let us subtract the binary number (111)  from (1000) .
                                                                                  2
                                                                    2
                                                         1     1
                                                     0  (10)  (10)  (10)  _____  Borrow
                                                     1   0     0    0
                                                 –       1     1    1

                                                     0   0     0    1


                       Factbot



                 Modern day binary number system was invented by Gottfried Leibiniz in 1679.






                          Quick Quiz

                1.  What is the result of converting the decimal number 20 to binary?
                           a. 10110                                      b. 10100

                2.  What is the decimal equivalent of the binary number 1101?

                           a. 11                                         b. 13

                3.   When adding two binary numbers, what is the sum of 1 and 0 in binary?
                           a. 1                                          b. 10



                            Recap



                            A number system is a systematic way of representing numbers in terms of quantities.
                            The decimal number system consists of ten digits from 0 to 9.


                            The binary number system consists of two digits, 0s and 1s.
                           The octal number system is used as a shorthand representation of long binary numbers.

                            The hexadecimal number system consists of 16 digits from 0 to 9 and letters from A to F.




                        CodeGPT (Ver. 4.0)-VII
                 16
   13   14   15   16   17   18   19   20   21   22   23