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
GMASJGMASJ 

Format the amount value

Hi,

 I am assigning opportunity amount to a get and set variable  public Decimal differenceamount{get;set;}

  Displaying this differenceamount in visualforce page problem am facing is amount is not formated 

<apex:outputText id="differenceamount" style="font-weight:500" label="Differnce Amount" value="${!differenceamount }"/>  

Please suggest me how to format the value it is displaying as Differnce Amount$38552.30

Thanks
Sudhir
          

 
Best Answer chosen by GMASJ
Gaurav Jain 103Gaurav Jain 103
Hi Sudhir,

Please try this;

<apex:outputText value="${0, number, ###,##0.00}">
 <apex:param value="{!differenceamount}"/>
</apex:outputText>

Please mark this as a best answer if your query is resolved, so it will help others in future.

Thanks,
Gaurav Jain