To display the total amount after rounding into a fixed decimal place in Advanced PDF template, refer sample code below
<#assign totalAmount =0>
<#list record.item as item>
<#assign totalAmount += (item.rate - item.quantity)?string("0.##")?number>
</#list>
<table>
<tr><td>${totalAmount}</td></tr>
</table>