Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Exl2k formula Rounding off
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Exl2k formula Rounding off
 Login/Join
 
Gold member
posted
Hi All,

We have a EXL2K FORMULA report output with fields format as D20.2 (Actual field format is D20.6).
By default EXL2K FORMULA format rounding off to the nearest integer value and then display it in excel.

Eg,. My field value is 43.376580, but it showing as 43.3766 in excel formula bar.

How to disable/remove this round off in EXL2K FORMULA output...?

I need actual value 43.37658 in cell. How to achieve this..?

Thanks..

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


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 69 | Location: India | Registered: November 03, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
What's the value of that field if you run the report with FORMAT HTML? Is that rounded off too or is it displaying the correct value?

I'm trying to see if the problem is with Excel or WF.


WebFOCUS 8206, Unix, Windows
 
Posts: 1708 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi BabakNYC,

Actual Value is 43.376580

In FORMAT HTML output, it shows actual value 43.376580 for D12.6 and shows rounded off value 43.38 for D12.2 display format.

but in EXL2K FORMULA output, it shows 43.3766 in cell(formula bar) for D12.2 display format.

Thanks

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


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 69 | Location: India | Registered: November 03, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Have you checked to see what happens when you change your format in Excel?


WebFOCUS 8206, Unix, Windows
 
Posts: 1708 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi BabakNYC,

In Excel it's showing the desired output(43.37658 in cell and 43.38 in display) while change the format.


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 69 | Location: India | Registered: November 03, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
Try changing the format to P12.6.
1. Actual of 12.6 is not the usage of 12.2
2. Redefine with P12.6
3. Screenshot shows IBI automatically uses ROUND in the formula.
4. Code below works for me.
  
TABLE FILE CAR
ON TABLE SET PAGE-NUM OFF
SUM RC AND DC AND
COMPUTE PROFIT/P12.6 = (RC - DC) * .43567;
BY CAR
HEADING
"Profit By Car"
" "
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT EXL2K FORMULA
ON TABLE SET STYLE *
TYPE=REPORT, COLOR=BLUE, BACKCOLOR=SILVER, SIZE=9,$
TYPE=HEADING, STYLE=BOLD, SIZE=14, $
TYPE=TITLE, STYLE=BOLD, SIZE=11,$
TYPE=GRANDTOTAL, STYLE=BOLD, SIZE=11,$
ENDSTYLE
END
-EXIT




Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1958 | Location: Centennial, CO | Registered: January 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
Thanks Tom.
But we are looking for output like below,

395.15 in cell display and 395.15269 in formula bar(original value).

postimage

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


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 69 | Location: India | Registered: November 03, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Then you need realise that be controlled in MS Excel not WebFOCUS.

When gets to MS Excel it finished in WebFOCUS. How display is control of MS Excel.

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
 
Posts: 103 | Registered: April 06, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Exl2k formula Rounding off

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.