diff --git a/filters/abs.md b/filters/abs.md index c151423..c35489c 100644 --- a/filters/abs.md +++ b/filters/abs.md @@ -4,34 +4,40 @@ title: abs Returns the absolute value of a number. +
Input
```liquid {% raw %} {{ -17 | abs }} {% endraw %} ``` +Output
```text 17 ``` +Input
```liquid {% raw %} {{ 4 | abs }} {% endraw %} ``` +Output
```text 4 ``` `abs` will also work on a string if the string only contains a number. +Input
```liquid {% raw %} {{ "-19.86" | abs }} {% endraw %} ``` +Output
```text 19.86 ```