Focal Point
[SOLVED] Displaying one digit after decimal.

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

October 14, 2014, 11:58 AM
varsha
[SOLVED] Displaying one digit after decimal.
Im new to webfocus so this may be very basic .
I am displaying a Goal percentage in the table but its value is shown as 94.2000000.

How do I modify this in the Define table?
I need to display only 94.2
This is what im using.

TABLE FILE DIVISION_WEEK
PRINT ST_GOAL_PCT
WHERE RECORDLIMIT EQ 500
ON TABLE PCHOLD FORMAT HTML
END
-EXIT

This message has been edited. Last edited by: <Kathryn Henning>,


WF 7.6.10, Windows 7, html,excel
October 14, 2014, 12:23 PM
Francis Mariani
You can try
TABLE FILE DIVISION_WEEK
PRINT ST_GOAL_PCT/D10.1
WHERE RECORDLIMIT EQ 500
ON TABLE PCHOLD FORMAT HTML
END



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
October 14, 2014, 12:28 PM
Rifaz
If you want to display your datas as its like in DB, you need to convert the format to ALPHA using FPRINT function.
TABLE FILE CAR
SUM DC DC/D8.2
COMPUTE ALPHA_DC/A10=FPRINT(DC,'D7',ALPHA_DC); 
BY COUNTRY
END 



-Rifaz

WebFOCUS 7.7.x and 8.x
October 14, 2014, 01:23 PM
varsha
quote:
/D10.1

Yes it worked SmilerThanks Francis I tried the D10.1.

Thanks guys.


WF 7.6.10, Windows 7, html,excel