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
IMU AdminIMU Admin 

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

Hi,

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

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

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? 

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