Skip to content

Round ​

Rounds a number to the nearest integer. A number argument sets the number of decimal places.

Example ​

liquid
{{ 4.567 | round }}
{{ 4.567 | round: 2 }}

Output

html
5
4.57