Number Filters
11 filters
-
add
adds
argto the value. - apnumber spells out one through nine, AP style. Needs {% load humanize %}, and django.contrib.humanize in INSTALLED_APPS
-
divisibleby
returns
Trueif the value is divisible byn. - filesizeformat converts a value in bytes to a friendly file size format. Most useful
-
floatformat
rounds a float to
ndecimal places. Most useful -
get_digit
returns the digit
icharacters from the right side of the value. - intcomma adds thousand separators to a number. Needs {% load humanize %}, and django.contrib.humanize in INSTALLED_APPS Most useful
- intword turns a large number into words. Needs {% load humanize %}, and django.contrib.humanize in INSTALLED_APPS
- length returns the length of a value. Most useful
- ordinal converts a number to its ordinal form. Needs {% load humanize %}, and django.contrib.humanize in INSTALLED_APPS
- wordcount outputs the number of words in a value.
