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] Exponential Value in Excel

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Exponential Value in Excel
 Login/Join
 
Gold member
posted
HI I Have one value which is displayed in the PDF/HTML Output format as '-20092840726542',
But the same value has been displayed as -2.00928E+13 in Excel output format.
I want to display this value same as that of PDF/HTML.

I have tried to increase length of this field, but doesn't work.
Any suggestion with this would be highly appreciated.

Thanks.

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


WebFocus7.6.2, WebFocus 7.1.1,Windows
HTML, PDF and Excel
 
Posts: 71 | Registered: June 30, 2009Report This Post
Expert
posted Hide Post
Seems to work for me:

TABLE FILE CAR
PRINT
COMPUTE NUMBER1/D15 = -20092840726542;
COMPUTE NUMBER2/D15 = -20092840726542;
COMPUTE NUMBER3/D15 = -20092840726542;
COMPUTE NUMBER4/D15 = 200928343326542;
COMPUTE NUMBER5/D15 = -20092840726542;
COMPUTE NUMBER6/D15 = 120140722432542;

COMPUTE ALPHA1/A15 = '-20092840726542';
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K

ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=10, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END


No exponentials in Excel, but I don't have 7.1 to test that version.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thanks Much Francis....
This did work in 7.1.7 as well..
and am able to use this in my code also...
Thats solved the problem....
Thanks..


WebFocus7.6.2, WebFocus 7.1.1,Windows
HTML, PDF and Excel
 
Posts: 71 | Registered: June 30, 2009Report This Post
Master
posted Hide Post
The problem is with packed decimal. Try to convert it into decimal. Here is the difference between these two formats.

DEFINE FILE CAR
NUMBER1/P15 = -20092840726542;
NUMBER2/D15 = -20092840726542;
ALPHA1/A15 = '-20092840726542';
END

TABLE FILE CAR
PRINT
NUMBER1
NUMBER2
ALPHA1
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K

ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=10, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END

 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
<JG>
posted
And the moral of the story is do not used packed for Excel output.

Packed format is not native to Windows so why should it behave as if it was.
 
Report 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] Exponential Value in Excel

Copyright © 1996-2020 Information Builders