Files
liquid/filters/round.md
2016-03-15 19:36:23 -04:00

422 B

title
title
round

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

{% raw %}
{{ 1.2 | round }}
{% endraw %}
{{ 1.2 | round }}
{% raw %}
{{ 2.7 | round }}
{% endraw %}
{{ 2.7 | round }}
{% raw %}
{{ 183.357 | round: 2 }}
{% endraw %}
{{ 183.357 | round: 2 }}