> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Restrict the Fractional Component from Displaying Two Values?

> Use Jinja syntax in MoEngage to format float, long, or big integer values in user and event attributes. Prevent unwanted fractional display issues.

## Instruction

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

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

## Example

The Jinja syntax must resemble the following:

<CodeGroup>
  ```json Jinja wrap theme={null}
  ${{'%0.2f'| format(sumHST | float) }} --> User attribute
  ${{'%0.2f'| format(EventAttribute.totalTaxLessAllInclusiveTaxes|float)}} --> Event attribute
  ```
</CodeGroup>
