Focal Point
[CLOSED] Exl2k formula Rounding off

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

July 07, 2016, 08:27 AM
Maran
[CLOSED] Exl2k formula Rounding off
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
July 07, 2016, 09:35 AM
BabakNYC
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
July 11, 2016, 08:58 AM
Maran
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
July 11, 2016, 10:22 AM
BabakNYC
Have you checked to see what happens when you change your format in Excel?


WebFOCUS 8206, Unix, Windows
July 12, 2016, 07:14 AM
Maran
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
July 12, 2016, 08:56 AM
Tom Flynn
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
July 14, 2016, 06:11 AM
Maran
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
July 14, 2016, 06:41 AM
Kofi
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