Round down
Mergers the value rounded down to precision significant digits. If the data is empty or not a number, the value 0 will be returned.
SYNTAX
{{roundDown 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: {{roundDown Contact.OrderAmt 2}}
A. Contact’s OrderAmt field has the value 16.399
Order total: 16.39
B. Contact’s OrderAmt field has the value 16.548 and a presicion of 1
Order total: 16.5
C. Contact’s OrderAmt field has the value 16.21, precision of 1, and a culture of pt-BR
Order total: 16,2