Conversion
To Int
Turns a float or a bool into an int.
In
To Int
Out
Node image coming soon
Usage
int and float never mix implicitly, so this is how a float reaches an int input — a loop bound, an array index. Floats are truncated toward zero.
Inputs
| Type | Name | Description |
|---|---|---|
| any | In | A float or a bool. |
Outputs
| Type | Name | Description |
|---|---|---|
| int | Out | The value as an int. |