Round a number in a Merge Template
For numbers with many decimals, you can round the number using format specifiers.
Round a number
Example: If you have a tag {$projectteam_0001} that related to the number 3.14159265 you can round it using the string_format specifier:
- {$projectteam_0001|string_format:"%.2f"} would be 13.45
- {$projectteam_0001|string_format:"%.0f"} would be 13
also {$projectteam_0001|string_format:"%d"} would be 13 as well
Learn more about the string_format specifier on the Smarty website.