You need to sign in to do that
Don't have an account?

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
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
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