Focal Point
[CLOSED]Remove trailing zeroes

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

November 04, 2015, 04:45 AM
Shankar
[CLOSED]Remove trailing zeroes
Hi All,
How to remove trailing zeroes after decimal places in numeric values?
Eg, 159,000.00 will become 159000
1.535135000000 will become 1.535135
-542,000.10 will become -542,000.1
-194,000.00 will become -194,000

Please advise.

Thanks
Anil

This message has been edited. Last edited by: <Emily McAllister>,


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
November 04, 2015, 10:25 AM
MartinY
Look the TRIM or TRIMV function.

You'll have to play back and forth with format, but it's feasible unless other suggestion.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 04, 2015, 03:22 PM
GavinL
I ran into something like this in the past while working with percentages.

Code:
-SET &PERC = 5.000000;
-SET &PERC2 = ATODBL(FTOA(&PERC, '(D9.6)', ALPHA_GROSS), '9', 'D9');
-TYPE PERC = >&PERC<
-TYPE PERC2 = >&PERC2.EVAL%<


Results:
PERC = >5.000000<
PERC2 = >5%<


Here are some conversations we already had about it.
http://forums.informationbuild...717053876#2717053876

http://forums.informationbuild...557028776#6557028776



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
November 04, 2015, 03:55 PM
Waz
Is this in DM or in DEFINE/TABLE ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!