Number Formating in PDF Template

Solution

For example, if currently the ${item.rate} is shown as 8.6354, we can use number formatting to format the digits display after the decimal.

${item.rate?string(“##0.0”)}

This helps to format the digits. After formatting it will be displayed as 8.6

Leave a comment

Your email address will not be published. Required fields are marked *