round
Filter
Rounds a number to the nearest integer or specified number of decimals.
Parameters
Parameter | Required | Description |
---|---|---|
precision
|
No |
integer Number of decimals to round to.
|
Category
Description
Rounds a number to the nearest integer. Or pass the precision
parameter to specify a
number of decimals to round to.
{{ 4.54 | round }}
Output
5
{{ 4.5 | round: 1 }}
Output
4