Use {{ceil}} to round a numeric value up to the nearest whole integer (i.e., always rounding to the next higher integer if decimals are present).
{{ceil field}}
-
field: A numeric or string-parsable numeric value (e.g.,
45.75,"45.75", orrecord.subTotal).
-
Rounding a record field
{{ceil record.total}}If
record.totalis45.75, this outputs46. -
Handling decimal shipping cost
{{ceil record.shipping}}If
record.shippingis62.02, the result is63. -
Hard-coded numeric strings
{{ceil "45.02"}}Returns
46.
Tip
-
Negative values are rounded “up” toward zero. For example,
{{ceil -2.8}}yields-2. -
If the value is already an integer (e.g.,
45), the helper simply returns it unchanged. -
Ensure the field can be interpreted as numeric; otherwise, results may be invalid.