XF 2.2 Number formatting


Well-known member
Is there a way I can apply xenforo's number formatting to a custom profile field that I have manually inserted in to a template?


XenForo moderator
Staff member
How are you outputting the content?

You can use a filter: {$var|number} or {$var|number_short}.

Alternatively, you can use a function: {{ number($var) }} or {{ number_short($var) }}

The output is the same so it's just personal preference.