round - Liquid Filter Reference - 0.11.5

Filter Name round
Group Numbers
Version 0.11.5

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 0.11.5

 

 
Back to Documentation