Round down

Merges a number rounded down, never up. Use it where rounding up would overstate something, such as a points balance, a qualifying quantity, or a discount you are about to promise.

Syntax

{{roundDown 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 down 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: If the value is empty or is not a number, 0 merges.
Note: Rounding down always moves toward zero for a positive value, so 16.399 with a precision of 2 gives 16.39 and not 16.40. For normal rounding use Round, and to always go up use Round up.

Examples

The examples below are based on the following sample content:

Order total: {{roundDown Contact.orderAmt 2}}

A. The contact's orderAmt field has the value 16.399

Order total: 16.39

B. The same value is 16.548 and the precision is 1

Order total: 16.5

C. The value is 16.21, the precision is 1, and the culture is pt-BR

Order total: 16,2

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us