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] Floating Decimal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Floating Decimal
 Login/Join
 
Silver Member
posted
In my report, i am printing values for production with the format "P20.2C"...
I get the out put with two decimals and coma seperated...example :
23.20
23,000.13
20,000.00

The requirement asks decimals only if there is demimal values like ".02" or ".16"...
other wise just the values without ".00"....

Can you help me guys...

This message has been edited. Last edited by: Kerry,


7.7.02, sql server
Windows
all output (Excel, HTML, PDF)
 
Posts: 38 | Registered: April 26, 2010Report This Post
Virtuoso
posted Hide Post
Multiple examples of this on the forum. Try searching for "dynamic format."


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
This might help:

DEFINE FILE CAR
TOT_SALES/P20.2 = SALES * 1.272;
FMT_SALES/A8 = IF INT(TOT_SALES) EQ TOT_SALES THEN 'P20C' ELSE 'P20.2C';
END
TABLE FILE CAR
PRINT TOT_SALES AS 'Actual,Value'
      TOT_SALES/FMT_SALES AS 'Formatted,Value'
BY COUNTRY AS 'Country'
BY CAR     AS 'Car'
END



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
You're too kind. I was letting the user figure out a little bit for themselves - having to expend a little effort helps them remember it better the next time.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
Point taken and agreed upon, Darin. Smiler

quote:
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.


Best,
- Neftali.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Expert
posted Hide Post
quote:
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
I prefer the version I posted a while back.

Give a man a fish and he'll eat well for a day, give him a boat and fishing rod and he'll sit in the boat all day drinking beer. Wink

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<JG>
posted
How come you know my favorite pastime?
 
Report This Post
Silver Member
posted Hide Post
Thank You guys very much....


7.7.02, sql server
Windows
all output (Excel, HTML, PDF)
 
Posts: 38 | Registered: April 26, 2010Report 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] Floating Decimal

Copyright © 1996-2020 Information Builders