Forum Discussion

tonongregory's avatar
11 years ago

Thousands separator

Hi

 

In my custom components i want to add thousands separator (to display users online count and users registered count)

 

Ex :

<#assign registeredCount = rest("users/registered/count").value?number />

${registeredCount}

 

It's display

 

368241

 

I want to display 368 241 instead.

3 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    11 years ago

    Hi tonongregory 

     

    have a look at the  freemarker documentation page.  You should be able to pass an appropriate format value so that numbers display in the desired way.

     

    Hope it helps,