round - Liquid Filter Reference - 1.0.0

Filter Name round
Group Numbers
Version 1.0.0

Description

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

Examples

{{ 1.2 | round }}
1
{{ 2.7 | round }}
3
{{ 183.357 | round: 2 }}
183.36

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation