7th November 2019, 16:21
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox Tools 10.7 -
DB: tbase, ms-sql7, oracle10gV1, 11g -
OS: HP-UX, W2K3, SLES
Originally Posted by günther
as I see, you are on LN. But Maybe my Baan IV Knowledge can help.
if double.cmp(xxxx, 0.0, 0.0001) then
attr.oformat$ = "Z"
attr.oformat$ = "ZZZTZZZTZZ9VD999" | or so
attr.oformat$ also exists in LN
string attr.oformat$(30) 4 Output format of field.
From LN-Devguide 10.7.1
function long double.cmp (double double1, double double2, double tolerance)
double double1 A double value.
double double2 A double value.
double tolerance Specifies a tolerance value for the function. If the difference between the two doubles is less than this value, the doubles are considered equal.
Do not use a tolerance of 0. Also, do not use a negative tolerance.
0 the difference between the doubles is less than the tolerance.
-1 double1 is less than double2 (the difference is greater than the tolerance).
1 double1 is greater than or equal to double2 (the difference is greater than the tolerance).
This function is implemented in the porting set and can be used in all script types.
double doub1, doub2
if double.cmp( doub1, doub2, 0.0001 ) = 0 then
| the two doubles are equal