abs
The abs filter returns the absolute value of a number.
{{ variable|abs }}
For example, if a variable called number holds a value of -5 then {{ number|abs }} would output 5.
The abs filter returns the absolute value of a number.
{{ variable|abs }}
For example, if a variable called number holds a value of -5 then {{ number|abs }} would output 5.