Liquex.Filter.ceil

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

Specs

ceil(number() | String.t() | nil, map()) :: number()

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

Examples

iex> Liquex.Filter.ceil(1.2, %{})
2

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

iex> Liquex.Filter.ceil(183.357, %{})
184

iex> Liquex.Filter.ceil("3.5", %{})
4