function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
johnc82johnc82 

Remove Decimal in Visualforce PDF

I have a visualforce page that I'm rendering as PDF.  I have the field set to no decimal and when viewing the actual visualforce page, there is no decimal, but when I view the page I have in PDF format, there is a decimal.  Anyone know how to remove it? Below is a line of one of the fields.

 

            <td width="10%" align="center">{!abc.Additional_Eq21__c}</td>

goabhigogoabhigo

Here you go:

 

<td width="10%" align="center">

<apex:outputText value="{0,number,###,###,##0}">       

<apex:param value="{!abc.Additional_Eq21__c}"/>

</apex:outputText>

</td>

goabhigogoabhigo

Just for your information, if you need to add /- after the amount, you can make use of outputText format to do the same:

<apex:outputText value="{0,number,###,###,##0.00/-}">  -  will show as - 1234500.00/-

esepauloesepaulo

Thanks for you code, I really like!