Float to Int

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.

Pack: ComfyUI_Yvann-Nodes

custom_nodes.ComfyUI_Yvann-Nodes

Inputs (1)

NameTypeRequired
floatsFLOATSrequired

Outputs (1)

NameType
intsINTS