ComfyUI Node
Float to Int
Converts a list of float values to integers by rounding each value to the nearest whole number. Takes any list of floats and outputs a list of integers (INTS type) with the same number of elements. Each float is rounded using standard rounding rules (0.5 rounds up). Useful for converting continuous weight values into discrete integer indices or counts for frame-based operations.
Float to Int
- floats
- ints
Category👁️ Yvann Nodes/🔄 Convert
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| floats | FLOATS | List of floats to round to nearest integers |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| ints | INTS | — |