Focal Point
[SOLVED] Precision for Amper variables

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8457073576

March 31, 2015, 12:40 PM
Y&Y
[SOLVED] Precision for Amper variables
Hello,

Can anyone explain to me if it's possible to set precision for Amper variables?

-SET &ECHO=ALL;
-SET &V1 = 11.23345;
-SET &V2 = 1.23341;
-SET &DIFF = &V1 - &V2;
-TYPE DIFF=10
DIFF=10

I expected to see 10.00004 ...
Thank you for help.

This message has been edited. Last edited by: Y&Y,


WebFOCUS 8204 and older, iWay DataMigrator; Unix/Linux/Windows; Oracle 11g, DB2; SQL, PL/SQL, ETL
March 31, 2015, 12:58 PM
j.gross
Look up: SET DMPRECISION


- Jack Gross
WF through 8.1.05
March 31, 2015, 01:09 PM
Y&Y
Hi Jack,
Thank you .
I just found your post for 2009 ...
and made changes :

-SET &ECHO=ALL;
SET DMPRECISION = 5
-SET &V1 = 11.23345 / 1.1;
-SET &V2 = 1.23341 / 1.00001;
-TYPE V1=&V1
-SET &DIFF = &V1 - &V2;
-TYPE DIFF=&DIFF

the output :
SET DMPRECISION = 5
-SET &V1 = 11.23345 / 1.1;
-SET &V2 = 1.23341 / 1.00001;
-TYPE V1=10
V1=10
-SET &DIFF = 10 - 1;
-TYPE DIFF=9
DIFF=9
...
Still not working.
I am in 8008
Thank you


WebFOCUS 8204 and older, iWay DataMigrator; Unix/Linux/Windows; Oracle 11g, DB2; SQL, PL/SQL, ETL
March 31, 2015, 01:18 PM
Y&Y
OK,
got it. Thank you.
Missed
-RUN
command after
SET DMPRECISION.


WebFOCUS 8204 and older, iWay DataMigrator; Unix/Linux/Windows; Oracle 11g, DB2; SQL, PL/SQL, ETL