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.

  • 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 – DinoCoderSaurus Sep 13 '20 at 16:41
  • Thank you SO much!!! – Ash Sep 15 '20 at 0:04

You must log in to answer this question.

Browse other questions tagged .