Skip to main content
Converts the input to an integer. Operates element-wise on lists. Sibling of To Float, To String, To Boolean, To Date, and To DateTime.

Configuration

  • Rounding — how a fractional input becomes an integer.
    • round (default) — nearest, halves away from zero (2.5 → 3, -2.5 → -3).
    • floor — towards negative infinity (2.9 → 2, -2.1 → -3).
    • ceil — towards positive infinity (2.1 → 3, -2.9 → -2).

Notes

Inputs must be a number or a numeric string. nil, booleans, and maps/structs are rejected.

Ports