Skip to content
Log in

round - Liquid Filter Reference

On this page

Description

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

Property Value
Return Type number
Category numbers

Examples

```liquid

{{ 1.2 | round }} ```

Output: 1

```liquid

{{ 2.7 | round }} ```

Output: 3

```liquid

{{ 183.357 | round: 2 }} ```

Output: 183.36

Was this article helpful?

Was this article helpful?