round - Liquid Filter Reference - 0.11.3
Filter Name | round |
Group | Numbers |
Version | 0.11.3 |
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 Liquid Reference for 0.11.3
Back to Documentation