+ Start a Discussion
IMU AdminIMU Admin 

Show actual curreny to 2 decimal places in Visual Force Email template


I have an visual force email tempalte however the currency field is giving me some problems: 

                We are writing to advise you that an amount of £{!relatedTo.Amount__c} is outstanding on your account

This works ok however if the amount is £200.00 when the email is sent it displays as £200.0

The same thing happens if this is £200.50 it will show as £200.5

It works correctly when the amount is e.g £200.11

Can anybody help? 

Uvais KomathUvais Komath
<apex:outputText value="{0, number, ###,###,###,###.00}">
<apex:param value="{!relatedTo.Amount__c}" />
Above format worked for me
Yuliana WestoverYuliana Westover
Thank you so much Uvais! this is just what I needed!