The abs filter returns the absolute value.
{# number = -5 #} {{ number | abs }} {# outputs 5 #}
Was this helpful?