SlideShare una empresa de Scribd logo
1 de 71
Descargar para leer sin conexión
1.17
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                    Truncation, Rounding,
                       Overflow, and
                      Conversion Error


 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                             Goal

      To be able to explain and demonstrate the concepts of
       truncation, rounding, overflow, and conversion error.




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




       The computer is imperfect




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




       The computer is imperfect
     No matter how large a computer is, it still has a limited
                     amount of storage.




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




       The computer is imperfect
     No matter how large a computer is, it still has a limited
                     amount of storage.
                           Consider the result of dividing 2 by 3.




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




       The computer is imperfect
     No matter how large a computer is, it still has a limited
                     amount of storage.
                           Consider the result of dividing 2 by 3.
                                  0.666666 is a repeating number.




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




       The computer is imperfect
     No matter how large a computer is, it still has a limited
                     amount of storage.
                           Consider the result of dividing 2 by 3.
                                  0.666666 is a repeating number.
       Regardless of how many bits we use to store this
    number, it will get “cut off” at some point. No computer
                can accurately store this number.
                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.
                    Truncate the following to 3 significant digits
                                                                0.2349




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.
                    Truncate the following to 3 significant digits
                                                                0.234




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.
                    Truncate the following to 5 significant digits
                                                                0.666666666666




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.
                    Truncate the following to 5 significant digits
                                                                0.66666




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.
           Truncate the following to 8 significant binary digits
                                                       0.1010101111000101




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                              Truncation
     To truncate a number means to simply ignore the extra
             digits that the computer cannot store.
           Truncate the following to 8 significant binary digits
                                                       0.10101011




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                      Real Numbers
      0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
      Represent 0.02510 in IEEE standard
       1. 0.02510 = 0.00000112         0.000001100110011
                                         1.100110011001
                                           1.1001 x 2-6
        2. normalized as 1.1001 x 2-6
        3. set the sign bit
        4. store -6 in the exponent section as (-6 + 127 = 121) 011110012
        5. store the normalized binary form




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310




 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610
      + 1310

 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610                                 011111102
      + 1310                                +000011012

 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610                                 011111102
      + 1310                                +000011012
                                             100010112
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610                                 011111102
      + 1310                                +000011012
                                 bit n
                                  sig




                                             100010112
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610                                 011111102                                                 this is -11710 in
                                                                                                    2’s complement, but
                                                                                                   the answer should be
      + 1310                                +000011012                                                       13910.
                                                                                                     What happened?
                                 bit n
                                  sig




                                             100010112
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610                                 01111110sign 7 bits can only store
                                                Remember that the
                                              first bit is used as a
                                                                    2
      + 1310
                                                                      up to 127.
                                            +000011012
                                                          bit.
                                 bit n
                                  sig




                                             100010112
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                  Overflow Error
   Let’s assume that we are using 8 bits and 2’s complement
    to store integers (1 sign bit and 7 bits for the number).
                                             Calculate 12610 + 1310

       12610                                 011111102                  7 bits can only
                                                                       store up to 127.

      + 1310
                                                                      We have an overflow
                                            +000011012                     problem.
                                 bit n
                                  sig




                                             100010112
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits




                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits

                                                                  2.53


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits

                                                                  2.53


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a moreSince 3 is less than 5,
                                       accurate representation
                          of the number. will be like
                                        this
                                                                                          truncation
                      Round the following to 2 significant digits

                                                                  2.53


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a moreSince 3 is less than 5,
                                       accurate representation
                          of the number. will be like
                                        this
                                                                                          truncation
                      Round the following to 2 significant digits

                                                                  2.5


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits

                                                                  2.5


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 3 significant digits

                                                                  17.948


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 3 significant digits

                                                                  17.948


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                                      Since 4 is less than 5,
                          of the number.this will be like
                                                                                             truncation
                      Round the following to 3 significant digits

                                                                  17.948


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 3 significant digits

                                                                  17.9


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits

                                                                  -0.002463


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
                                             Since we are
   digit is “adjusted” to give a more accurate representation
                                            concerned only
                                          about the significant
                          of the number. digits, we will only
                                                                                           consider these
                      Round the following to 2                                       significant digits
                                                                                               digits

                                                                  -0.002463


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits

                                                                  -0.002463


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate 6representation
                                           Since is greater
                                         than or equal to 5, we
                          of the number.“round up” the 4 to its
                                                                                                      left to 5
                      Round the following to 2 significant digits

                                                                  -0.002463


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 2 significant digits

                                                                  -0.0025


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 5 significant digits

                                                                  0.173


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, that this isthe last
                                           Note where a
                                           repeating number.
   digit is “adjusted” to give a more accurateexpand to at least
                                      We should
                                                  representation
                          of the number. significant digits before
                                        6
                                                                                       rounding to 5 significant
                      Round the following to 5                                       significant digits
                                                                                              digits

                                                                  0.173


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, that this isthe last
                                           Note where a
                                           repeating number.
   digit is “adjusted” to give a more accurateexpand to at least
                                      We should
                                                  representation
                          of the number. significant digits before
                                        6
                                                                                       rounding to 5 significant
                      Round the following to 5                                       significant digits
                                                                                              digits

                                                                  0.173737


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 5 significant digits

                                                                  0.173737


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 5 significant digits

                                                                  0.173737


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                                            Since 7 is greater
                                          than or equal to 5, we
                          of the number. “round up” the 3 to its
                                                                                                        left to 4
                      Round the following to 5 significant digits

                                                                  0.173737


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                                                  Rounding
    An alternative to truncation is rounding, where the last
   digit is “adjusted” to give a more accurate representation
                          of the number.
                      Round the following to 5 significant digits

                                                                  0.17374


                                                                                                                                   2/
 MATH1003
                                                                                                                                     3
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
     Let’s represent 0.110 with 4 bytes in IEEE standard form.




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
        1. 0.110 = 0.000112




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
        1. 0.110 = 0.000112
        2. normalize 0.000112 = 1.10011 x 2-4




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit
        4. store -4 in the exponent section




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit                                                                 -4 + 127 = 123
        4. store -4 in the exponent section
                                                                                           123 = 011110112




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit                                                                 -4 + 127 = 123
        4. store -4 in the exponent section
                                                                                           123 = 011110112




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit
        4. store -4 in the exponent section
        5. store the normalized binary form




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
     Let’s represent 0.110 with 4 bytes in IEEE standard form.
      1. 0.110 = 0.000112                    1.10011 x 2-4
        2. normalize 0.000112 = 1.10011 x 2-4
        3. set the sign bit
        4. store -4 in the exponent section
        5. store the normalized binary form




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123)




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123)
        3. the decimal exponent is 123 - 127 = -4




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123)
        3. the decimal exponent is 123 - 127 = -4
        4. from the number section, we have 1.10011001100110011001100




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123)
        3. the decimal exponent is 123 - 127 = -4
        4. from the number section, we have 1.10011001100110011001100
        5. therefore the number is 1. 10011001100110011001100 x 2-4




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123)
        3. the decimal exponent is 123 - 127 = -4
        4. from the number section, we have 1.10011001100110011001100
        5. therefore the number is 1. 10011001100110011001100 x 2-4
        6. 1. 10011001100110011001100 = 1.59999990463 (approximately)




                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123)
        3. the decimal exponent is 123 - 127 = -4
        4. from the number section, we have 1.10011001100110011001100
        5. therefore the number is 1. 10011001100110011001100 x 2-4
        6. 1. 10011001100110011001100 = 1.59999990463 (approximately)
        7. 1.59999990463 x 2-4 = 0.099999994



                                                                                                                                   0.1
 MATH1003
10110100101011010100101010111010101111011011101111011101110111101110111011110111111010110100101011110110110101111011010100111111011010100110101001




                             Conversion Error
      0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
                         Now, let’s convert this back to decimal
        1. since the sign bit is 0, we know this is a positive number
        2. the exponent section is 01111011 (= 123) This is a
        3. the decimal exponent is 123 - 127 = -4 conversion error:
        4. from the number section, we have 1.10011001100110011001100
                                                      0.099999994 ≠ 0.1
        5. therefore the number is 1. 10011001100110011001100 x 2-4
        6. 1. 10011001100110011001100 = 1.59999990463 (approximately)
        7. 1.59999990463 x 2-4 = 0.099999994



                                                                                                                                   0.1
 MATH1003

Más contenido relacionado

La actualidad más candente

Fourier series example
Fourier series exampleFourier series example
Fourier series example
Abi finni
 
Example a lossless reciprocal network
Example a lossless reciprocal networkExample a lossless reciprocal network
Example a lossless reciprocal network
Rahul Vyas
 

La actualidad más candente (20)

Gamma function
Gamma functionGamma function
Gamma function
 
DSP_FOEHU - Lec 02 - Frequency Domain Analysis of Signals and Systems
DSP_FOEHU - Lec 02 - Frequency Domain Analysis of Signals and SystemsDSP_FOEHU - Lec 02 - Frequency Domain Analysis of Signals and Systems
DSP_FOEHU - Lec 02 - Frequency Domain Analysis of Signals and Systems
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Numerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolationNumerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolation
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
Z transform ROC eng.Math
Z transform ROC eng.MathZ transform ROC eng.Math
Z transform ROC eng.Math
 
Example a lossless reciprocal network
Example a lossless reciprocal networkExample a lossless reciprocal network
Example a lossless reciprocal network
 
Dif fft
Dif fftDif fft
Dif fft
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
Satellite Link Design: Basic Transmission Theory & Noise Temperature
Satellite Link Design: Basic Transmission Theory & Noise TemperatureSatellite Link Design: Basic Transmission Theory & Noise Temperature
Satellite Link Design: Basic Transmission Theory & Noise Temperature
 
Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report
 
Dsss final
Dsss finalDsss final
Dsss final
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
Generarion of ssb frequency discrimination method
Generarion of ssb frequency discrimination methodGenerarion of ssb frequency discrimination method
Generarion of ssb frequency discrimination method
 
Simpson's rule of integration
Simpson's rule of integrationSimpson's rule of integration
Simpson's rule of integration
 
Liner algebra-vector space-1 introduction to vector space and subspace
Liner algebra-vector space-1   introduction to vector space and subspace Liner algebra-vector space-1   introduction to vector space and subspace
Liner algebra-vector space-1 introduction to vector space and subspace
 
Numerical methods by Jeffrey R. Chasnov
Numerical methods by Jeffrey R. ChasnovNumerical methods by Jeffrey R. Chasnov
Numerical methods by Jeffrey R. Chasnov
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Fourier series and transforms
Fourier series and transformsFourier series and transforms
Fourier series and transforms
 
Structures for FIR systems
Structures for FIR systemsStructures for FIR systems
Structures for FIR systems
 

Destacado

03 truncation errors
03 truncation errors03 truncation errors
03 truncation errors
maheej
 
Math1003 welcome-13 w
Math1003 welcome-13 wMath1003 welcome-13 w
Math1003 welcome-13 w
gcmath1003
 
Math1003 1.4 - Number Systems
Math1003 1.4 - Number SystemsMath1003 1.4 - Number Systems
Math1003 1.4 - Number Systems
gcmath1003
 
Math1003 1.14 - Scientific Notation
Math1003 1.14 - Scientific NotationMath1003 1.14 - Scientific Notation
Math1003 1.14 - Scientific Notation
gcmath1003
 
Math1003 1.1 - Sets of Numbers
Math1003 1.1 - Sets of NumbersMath1003 1.1 - Sets of Numbers
Math1003 1.1 - Sets of Numbers
gcmath1003
 
Math1003 1.16 - Real Numbers
Math1003 1.16 - Real NumbersMath1003 1.16 - Real Numbers
Math1003 1.16 - Real Numbers
gcmath1003
 
Math1003 1.5 - Decimal Number System
Math1003 1.5 - Decimal Number SystemMath1003 1.5 - Decimal Number System
Math1003 1.5 - Decimal Number System
gcmath1003
 
Math1003 1.2 - Properties of Numbers
Math1003 1.2 - Properties of NumbersMath1003 1.2 - Properties of Numbers
Math1003 1.2 - Properties of Numbers
gcmath1003
 
Math1003 1.6 - Binary Number System
Math1003 1.6 - Binary Number SystemMath1003 1.6 - Binary Number System
Math1003 1.6 - Binary Number System
gcmath1003
 
Math1003 1.7 - Hexadecimal Number System
Math1003 1.7 - Hexadecimal Number SystemMath1003 1.7 - Hexadecimal Number System
Math1003 1.7 - Hexadecimal Number System
gcmath1003
 
Math1003 1.8 - Converting from Binary and Hex to Decimal
Math1003 1.8 - Converting from Binary and Hex to DecimalMath1003 1.8 - Converting from Binary and Hex to Decimal
Math1003 1.8 - Converting from Binary and Hex to Decimal
gcmath1003
 
Math1003 1.12 - Binary Addition
Math1003 1.12 - Binary AdditionMath1003 1.12 - Binary Addition
Math1003 1.12 - Binary Addition
gcmath1003
 
Math1003 - An Intro to Number Systems
Math1003 - An Intro to Number SystemsMath1003 - An Intro to Number Systems
Math1003 - An Intro to Number Systems
gcmath1003
 
Math1003 1.10 - Binary to Hex Conversion
Math1003 1.10 - Binary to Hex ConversionMath1003 1.10 - Binary to Hex Conversion
Math1003 1.10 - Binary to Hex Conversion
gcmath1003
 

Destacado (20)

03 truncation errors
03 truncation errors03 truncation errors
03 truncation errors
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Math1003 welcome-13 w
Math1003 welcome-13 wMath1003 welcome-13 w
Math1003 welcome-13 w
 
Math1003 1.4 - Number Systems
Math1003 1.4 - Number SystemsMath1003 1.4 - Number Systems
Math1003 1.4 - Number Systems
 
Math1003 1.14 - Scientific Notation
Math1003 1.14 - Scientific NotationMath1003 1.14 - Scientific Notation
Math1003 1.14 - Scientific Notation
 
Math1003 1.1 - Sets of Numbers
Math1003 1.1 - Sets of NumbersMath1003 1.1 - Sets of Numbers
Math1003 1.1 - Sets of Numbers
 
Math1003 1.16 - Real Numbers
Math1003 1.16 - Real NumbersMath1003 1.16 - Real Numbers
Math1003 1.16 - Real Numbers
 
Math1003 1.5 - Decimal Number System
Math1003 1.5 - Decimal Number SystemMath1003 1.5 - Decimal Number System
Math1003 1.5 - Decimal Number System
 
Math1003 1.2 - Properties of Numbers
Math1003 1.2 - Properties of NumbersMath1003 1.2 - Properties of Numbers
Math1003 1.2 - Properties of Numbers
 
Math1003 1.6 - Binary Number System
Math1003 1.6 - Binary Number SystemMath1003 1.6 - Binary Number System
Math1003 1.6 - Binary Number System
 
heat
heatheat
heat
 
Math1003 1.7 - Hexadecimal Number System
Math1003 1.7 - Hexadecimal Number SystemMath1003 1.7 - Hexadecimal Number System
Math1003 1.7 - Hexadecimal Number System
 
Es272 ch2
Es272 ch2Es272 ch2
Es272 ch2
 
Math1003 1.8 - Converting from Binary and Hex to Decimal
Math1003 1.8 - Converting from Binary and Hex to DecimalMath1003 1.8 - Converting from Binary and Hex to Decimal
Math1003 1.8 - Converting from Binary and Hex to Decimal
 
Math1003 1.12 - Binary Addition
Math1003 1.12 - Binary AdditionMath1003 1.12 - Binary Addition
Math1003 1.12 - Binary Addition
 
Applied numerical methods lec3
Applied numerical methods lec3Applied numerical methods lec3
Applied numerical methods lec3
 
Math1003 - An Intro to Number Systems
Math1003 - An Intro to Number SystemsMath1003 - An Intro to Number Systems
Math1003 - An Intro to Number Systems
 
Math1003 1.10 - Binary to Hex Conversion
Math1003 1.10 - Binary to Hex ConversionMath1003 1.10 - Binary to Hex Conversion
Math1003 1.10 - Binary to Hex Conversion
 

Más de gcmath1003

Math1003 1.4 - Order of Operations
Math1003 1.4 - Order of OperationsMath1003 1.4 - Order of Operations
Math1003 1.4 - Order of Operations
gcmath1003
 
Math1003 1.15 - Integers and 2's Complement
Math1003 1.15 - Integers and 2's ComplementMath1003 1.15 - Integers and 2's Complement
Math1003 1.15 - Integers and 2's Complement
gcmath1003
 
Math1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, PrecisionMath1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, Precision
gcmath1003
 
Math1003 1.11 - Hex to Binary Conversion
Math1003 1.11 - Hex to Binary ConversionMath1003 1.11 - Hex to Binary Conversion
Math1003 1.11 - Hex to Binary Conversion
gcmath1003
 
Math1003 1.9 - Converting Decimal to Binary and Hex
Math1003 1.9 - Converting Decimal to Binary and HexMath1003 1.9 - Converting Decimal to Binary and Hex
Math1003 1.9 - Converting Decimal to Binary and Hex
gcmath1003
 
Math1003 1.3 - Exponents
Math1003 1.3 - ExponentsMath1003 1.3 - Exponents
Math1003 1.3 - Exponents
gcmath1003
 

Más de gcmath1003 (6)

Math1003 1.4 - Order of Operations
Math1003 1.4 - Order of OperationsMath1003 1.4 - Order of Operations
Math1003 1.4 - Order of Operations
 
Math1003 1.15 - Integers and 2's Complement
Math1003 1.15 - Integers and 2's ComplementMath1003 1.15 - Integers and 2's Complement
Math1003 1.15 - Integers and 2's Complement
 
Math1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, PrecisionMath1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, Precision
 
Math1003 1.11 - Hex to Binary Conversion
Math1003 1.11 - Hex to Binary ConversionMath1003 1.11 - Hex to Binary Conversion
Math1003 1.11 - Hex to Binary Conversion
 
Math1003 1.9 - Converting Decimal to Binary and Hex
Math1003 1.9 - Converting Decimal to Binary and HexMath1003 1.9 - Converting Decimal to Binary and Hex
Math1003 1.9 - Converting Decimal to Binary and Hex
 
Math1003 1.3 - Exponents
Math1003 1.3 - ExponentsMath1003 1.3 - Exponents
Math1003 1.3 - Exponents
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion Error