0

I was wondering about how to commafy large digits in jinja so that instead of [$10000 / $100000 / $1000000] these numbers would be displayed as such [$10,000 / $100,000 / $1,000,000]

I've been looking all over but surprisingly couldn't find a quick simple solution.

2
  • 1
    the usd function in helpers displays floats with thousands separator. Hint: you can pipe a fload to usd in the html e.g. total | usd. FYI here is the doc on the format specifier mini-language Commented Sep 13, 2020 at 16:41
  • Thank you SO much!!!
    – Ash
    Commented Sep 15, 2020 at 0:04

0

You must log in to answer this question.

Browse other questions tagged .