[Django]-Django template How to Convert numbers to Words

6👍

Check out this library: num2words

Straight from the docs:

>>> from num2words import num2words
>>> num2words(42)
forty-two
>>> num2words(42, ordinal=True)
forty-second
>>> num2words(42, lang='fr')
quarante-deux

Leave a comment