mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
617 B
617 B
title
| title |
|---|
| round |
Rounds an input number to the nearest integer or, if a number is specified as an argument, to that number of decimal places.
Input
```liquid {% raw %} {{ 1.2 | round }} {% endraw %} ```Output
```text {{ 1.2 | round }} ```Input
```liquid {% raw %} {{ 2.7 | round }} {% endraw %} ```Output
```text {{ 2.7 | round }} ```Input
```liquid {% raw %} {{ 183.357 | round: 2 }} {% endraw %} ```Output
```text {{ 183.357 | round: 2 }} ```