The ceil helper rounds a numeric value up to the nearest whole integer. Use it when you need to ensure a value never falls below a calculated threshold -- for example, rounding up a shipping cost or minimum quantity.
Syntax
{{ceil field}}
field -- The numeric value to round up. Required. Accepts a number, numeric string, or field reference. If the value is already an integer, it's returned unchanged.
Examples
Round up a decimal field value
{{ceil record.total}}
Input: record.total is 45.75
Output: 46
Round up a shipping cost
{{ceil record.shipping}}
Input: record.shipping is 62.02
Output: 63
Round up a hard-coded numeric string
{{ceil "45.02"}}
Output: 46
Usage notes
- Integer values pass through unchanged:
{{ceil 45}}returns45. - Negative values are rounded up toward zero:
{{ceil -2.8}}returns-2, not-3. - The input must be numeric or parseable as numeric. Non-numeric values produce unexpected results.