You need to sign in to do that
Don't have an account?
Leonard Silon 16
how do I get all decimal places to display in a VF Email template?
I have this code:
<tr >
<th>Rate Factor</th>
<th>Term</th>
<th>Purchase Option</th>
</tr>
<apex:repeat var="cx" value="{!relatedTo.Terms__r}">
<tr>
<td>{!cx.Current_Rate_Options__c}</td>
<td>{!cx.Term__c}</td>
<td>{!cx.FMV__c}</td>
</tr>
</apex:repeat>
</table>
Current_Rate_Options__c is a number with 5 decimal places. If the number is 0.02700, the output shows as 0.027. This is in a VF email template. How do I get all 5 decimal places all the time?
<tr >
<th>Rate Factor</th>
<th>Term</th>
<th>Purchase Option</th>
</tr>
<apex:repeat var="cx" value="{!relatedTo.Terms__r}">
<tr>
<td>{!cx.Current_Rate_Options__c}</td>
<td>{!cx.Term__c}</td>
<td>{!cx.FMV__c}</td>
</tr>
</apex:repeat>
</table>
Current_Rate_Options__c is a number with 5 decimal places. If the number is 0.02700, the output shows as 0.027. This is in a VF email template. How do I get all 5 decimal places all the time?
complete code
Below Code can fulfill your requirements, Hope this will work for you.
Please mark this as best answer if this solves your problem.
Thank you,
Ajay Dubedi