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

TypeNameDescription
anyIn A float or a bool.

Outputs

TypeNameDescription
intOut The value as an int.