Round
Merges a number rounded to the number of decimal places you ask for. Use it to tidy up a calculated total so it reads like money rather than like a raw figure.
Syntax
{{round data precision culture}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Data | Number | Required | The value to round. |
| Precision | Number | Optional | How many digits to keep after the decimal point. Leaving it out, or using 0, rounds to a whole number. |
| Culture | Text | Optional | The culture used to write the decimal separator, such as pt-BR. Your account's default is used when you leave it out. |
Note: A halfway value rounds away from zero, so 16.5 at a precision of 0 gives 17 rather than 16.
Note: If the value is empty or is not a number, 0 merges.
Note: To force the result in one direction, use Round up or Round down.
Examples
The examples below are based on the following sample content:
Order total: {{round Contact.orderAmt 2}}
A. The contact's orderAmt field has the value 16.399
Order total: 16.40
B. The same value is 16.548 and the precision is 0
Order total: 17
C. The value is 16.399, the precision is 1, and the culture is pt-BR
Order total: 16,4