Liquex.Filter.round

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

round(value, precision \\ 0, context)

View Source

Rounds a number to the nearest integer or, if a number is passed as an argument, to that number of decimal places.

Examples

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

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

iex> Liquex.Filter.round(2.7, %{})
3

iex> Liquex.Filter.round(183.357, 2, %{})
183.36