|
From the 7.0 DTR release notes:
Publication Date: March 1995
2.3 Error Converting D_FLOATING Values to Integer Values
In Version 6.1 a problem occurred when converting a
D_FLOATING value to an integer value. The following example
illustrates the problem:
DTR> DECLARE I LONG. ;
DTR> DECLARE D D_FLOATING. ;
DTR> D = 1E-30 ;
DTR> I = D ;
Variable "I" may contain an incorrect value due to error
during assignment.
%MTH-F-FLOOVEMAT, floating overflow in math library user PC 00321023
In order to keep all the significant digits, DEC DATATRIEVE
used a scale factor which created an integer value
exceeding the D_ FLOATING range (in the example the scale
factor is -47).
In DEC DATATRIEVE Version 7.0 this problem has been fixed
and the conversion of a D_FLOATING value to an integer
value does not cause any problems.
|