XF 2.2 Change a specific value to use short format

Russ

Well-known member
Is there a way to convert a specific value to use the short number format? The forum uses the #k method but it doesn't change the forum stats.

I'm trying to display the message count in the same manner.

Code:
{$forumStatistics.messages|number}
 
Solution
Try {$forumStatistics.messages|number_short}

You can also add decimal places using {$forumStatistics.messages|number_short(2)}
Top