I am working with visualforce template i am getting all decimal values in my mail but i want to round it in Max upto 2 decimals
SubTotal $90.0000
Shipping & handling $2.000
Grand Total(Excl.Tax) $92.000
Tax $8.170
Grand Total(Incl.Tax) $100.1700
My Template Code
<messaging:emailTemplate recipientType="Contact" relatedToType="Quote__c" subject="Your requested quote #{!relatedTo.Name}" >
<messaging:htmlEmailBody>
<apex:outputField value="{!relatedTo.Total_Price__c}"/>
<apex:outputField value="{!relatedTo.Total_Shipping__c}"/>
<apex:outputField value="{!relatedTo.Gtotal__c}"/>
</messaging:htmlEmailBody>
</messaging:emailTemplate>
<apex:outputField value="{!ROUND(relatedTo.Total_Price__c,3)}"/>
The{!
appears at the beginning of the expression and you don't embed{!
again in the expression