How to Restrict the Fractional Component from Displaying Two Values?

Instruction

To handle float, long, or big integer values in user or event attributes, use Jinja.

warning

Warning

The round function is not supported in Jinja 2.8 versions; it is recommended that you use the format function instead.

Example

The Jinja syntax must resemble the following:

Jinja
${{'%0.2f'| format(sumHST | float) }} --> User attribute
${{'%0.2f'| format(EventAttribute.totalTaxLessAllInclusiveTaxes|float)}} --> Event attribute

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?