Round
Mergers the value rounded to precision significant digits. If the data is empty or not a number, the value 0 will be returned.
SYNTAX
{{round data precision culture}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Data | Number | Required | Data to be formatted. |
Precision | Number | Required | Number of digits after the decimal to round the value to. |
Culture | Text | Optional | Text that denotes the culture to be used. |
EXAMPLES
The examples below are based on the following sample content:
Order total: {{round Contact.OrderAmt 2}}
A. Contact’s OrderAmt field has the value 16.399
Order total: 16.40
B. Contact’s OrderAmt field has the value 16.548 and a precision of 0
Order total: 17
C. Contact’s OrderAmt field has the value 16.399, precision of 1, and a culture of pt-BR
Order total: 16,4