Sunday, April 22, 2018

Operations of Normalized Floating Point


1.Addition
2.Subtraction
3.Multiplication
4.Division.

1.Addition:-
        (i). .4546 E 5 and .5433 E 5
                  = .9979 E 6

          (ii). .459 E 5 and .5433 E 7
                  = .5478 E 5
2.Subtraction:-
       (i). .9432 E -4 from .5452 E -3
           =.9432 E -4 from .5452 E-3 
                                              |
                                       greater no.
              .09432 from.5424 E -3
                           + 5424 
                            . 0993   
                 = .4509 E -3 

       (ii). .5424 E 3 from .5452 E 3
                 = . 5452
                    . 5424 
              . 0028
                 = .0028 E 3
                 = .28 E 1

    (iii). .5424 E -99 from .5452 E -99
                 = . 5424
                    . 5424       
                    .0028 E -99
                = .28 E -101 
                                               underflow


3.Multiplication:-
       (i). .5543 E 12 and .4111 E -15
             .5543 E 12  ×  .4111 E -15
                = 0.2278 E -3

      (ii). .1111 E 10 and .1234 E 15
             .1111 E 12  ×  .1234 E 15
                = 0.01370974 E 10 + E 15
                = 0.01370974 E 25 
                = 1.37094 E 23

      (iii). .1111 E 51 and .4444 E 50
                =.1111 E 51 × .4444 E 50
                =.4437284 E 100
                                               overflow

  (iv). .12134 E -49 and .1111 E -54
         = .12134 E-49  ×  .1111 E -54
                = .1370974 E -104
                                             underflow

4.Division:-
       (i). .9998 E 1  ÷  .1000 E -99
                = .9998 E 1  ÷  .1000 E -99
                = 9.998 E 1-(-99)
                = 9.998 E 100
                = .9998 E 101
                                             overflow

     (ii). .1000 E 5  ÷  .9999 E 3
                = .1000 E 5  ÷  .9999 E 3
                = .100010001 E 5-3
                = .100010001 E 2 .


                                     

No comments:

Post a Comment