Convert to integer (int) (any_to_int)¶
What it does: Converts the input to an integer (like int() in Python).

Inputs¶
- Value (technical input name
NAME): number, text or logical value.
Output¶
- number (int)
Tips¶
- Decimal is trimmed towards zero (
int(3.9) → 3,int(-3.9) → -3). - The text must be a valid representation of a number (otherwise an error).
- Text
"3.9"cannot be converted directly viaint()as a decimal number. First convert it to a decimal number, or use whole number text.
Examples of the result¶
int(3.9) returns 3, int(-3.9) returns -3, int("42") returns 42, and int(True) returns 1. The conversion does not round to the nearest whole number.