Liquex.Filter.floor

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

Specs

floor(binary() | number() | nil, any()) :: integer()

Rounds the input down to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.

Examples

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

iex> Liquex.Filter.floor(2.0, %{})
2