Liquex.Filter.abs

You're seeing just the function abs, go back to Liquex.Filter module for more information.

Specs

abs(String.t() | number(), any()) :: number()

Returns the absolute value of value.

Examples

iex> Liquex.Filter.abs(-1, %{})
1

iex> Liquex.Filter.abs(1, %{})
1

iex> Liquex.Filter.abs("-1.1", %{})
1.1