Hi there. I am using the currency object as one of the fields in an object on Silverstripe. However; whenever I display it in the temaple it has four digits after the decimal point. I just wondered if there is anyway of stopping it and it only showing two. Below is an example of the code:
<% control Courses %>
<tr>
<td class="first"><a href="{$Top.BaseHref}{$Top.URLSegment}/{$URLSegment}">$Title</a></td>
<td>$Duration</td>
<td class="highlight">{$PriceCurrency}{$PriceAmount}
</td>
<td class="last"><a class="date-link" href="/booking/course/{$ID}">Find Dates</a></td>
</tr>
<% end_control %>
<tr>
<td class="first"><a href="{Link Removed}">Fire Safety Course</a></td>
<td></td>
<td class="highlight">£0.0000</td>
<td class="last"><a class="date-link" href="/booking/course/2">Find Dates</a></td>
</tr>
Hope someone can help.
Cheers,
Steve