Forum Discussion

Rajorigin's avatar
Rajorigin
Specialist
2 years ago

Liquid tag for formatting numbers

Hello Bonfirers,

Has anyone formatted numbers in Liquid? I need to add comma separators ... so that number 123456789 is displayed as 123,456,789 (as an example). Couldn't find any filters for this used case.

Regards
Raj

  • DavidO's avatar
    DavidO
    Strategist II

    Glad you got a solution. I often type these questions into ChatGPT. You have to be clear that it is liquid in Braze and not just liquid generally but I'd say 95% of the time you can get a solution that works. 

  • Great to hear it Raj! Yes, those filters are wonderful and very helpful with number formatting. There are some currency related filters too if you ever need them. 

    Best,

    Allan

    Live from Braze Forge Bonfire desk!