Articles in this section

ceil helper

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).

Usage

{{ceil field}}
  • field: A numeric or string-parsable numeric value (e.g., 45.75, "45.75", or record.subTotal).

Examples

  1. Rounding a record field

    {{ceil record.total}}
    

    If record.total is 45.75, this outputs 46.

  2. Handling decimal shipping cost

    {{ceil record.shipping}}
    

    If record.shipping is 62.02, the result is 63.

  3. 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.