Bars Specification 0.1.0 — Transform: round¶
Category: math · Since: 0.1.0
Rounds to a number of decimal places.
Rounds the numeric input to places decimal places (0 by default), with halves rounding away from zero (matching Shopify Liquid / Ruby). A negative places is a degenerate-value soft failure.
Input coercion: number
Arguments¶
| Name | Type | Optional | Default |
|---|---|---|---|
places |
integer | yes | 0 |
Arity: 0–1
Worked examples¶
→
→
Full fixture: transforms/transform-round.json