Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Precision for Amper variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Precision for Amper variables
 Login/Join
 
Member
posted
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
 
Posts: 23 | Registered: May 17, 2012Report This Post
Virtuoso
posted Hide Post
Look up: SET DMPRECISION


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 23 | Registered: May 17, 2012Report This Post
Member
posted Hide Post
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
 
Posts: 23 | Registered: May 17, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Precision for Amper variables

Copyright © 1996-2020 Information Builders