Google
 

Trailing-Edge - PDP-10 Archives - bb-bt99h-bb - cbl12c.d14
There are no other files named cbl12c.d14 in the archive.
                 EDIT DESCRIPTIONS FOR COBOL-10-V12C                            
  
  
                             EDIT 1624   FOR COBOL
  
  
  
  
[SYMPTOM]
  
A COMPUTE that requires a coversion from a COMP-1 item to do
math  with  COMP-2  will  lose  precision in the conversion.
I.E.:
  
        COMPUTE ITEM3 = ITEM1 - ITEM2.
        COMPUTE ITEM4 = ITEM3 / 100.
  
Will not yield the same results as:
  
        COMPUTE ITEM4 = (ITEM1 - ITEM2) / 100.
  
If all the variables are pic 9(8) or greater  and  ITEM4  is
9(8)v99.
  
[DIAGNOSIS]
  
CCXF2.:  in MOVGEN will gernerate a conversion of a  1  word
integer  into  a  one word floating.  A one word integer can
have upto 11 significant digits but a 1 word floating  point
number will only represent 8.
  
[CURE]
  
Change CCXF2.:   to  generate  a  conversion  to  a  1  word
floating point number only if the size of the source item is
less than 8 digits.
********************************************************************************
  
  
  
END OF  COBOL-10-V12C