abs - Liquid Filter Reference
On this page
Description
Returns the absolute value of a number.
| Property | Value |
|---|---|
| Return Type | number |
| Category | numbers |
Examples
liquid
{{ -17 | abs }}
Output: 17
liquid
{{ 4 | abs }}
Output: 4
liquid
{{ -19.86 | abs }}
Output: 19.86