FL Int to Float
The one-line node that unblocks a red wire
- float_value
You dragged a wire from an INT output to a FLOAT input and ComfyUI refused to connect it. That's the entire reason this node exists. FL_IntToFloat takes an integer and hands you back the same number as a float. That's it. It's a type adapter, the ComfyUI equivalent of a plug converter.
If that sounds too trivial to need a node - welcome to node-based tools. ComfyUI is strict about types: an INT socket and a FLOAT socket are different colors and won't link, even though 5 and 5.0 are obviously the same value to you. Most of the time that strictness is a good thing, because it stops you wiring a latent into a text box. But now and then you've got a node that outputs a plain integer (a counter, a batch index, a random INT, a dimension read off an image) and a downstream node that only accepts a FLOAT (a strength, a CFG, a multiplier). The connection is meaningless to ComfyUI until you convert. Drop FL_IntToFloat in the middle and the wire goes green.
The inputs and outputs
There's exactly one of each. int_value (INT) goes in; float_value (FLOAT) comes out. No rounding modes, no options, no config - an integer is already a whole number, so there's nothing to decide. Wire it inline between the two nodes that wouldn't talk to each other and you're done.
If you need the trip the other way - a FLOAT down to an INT, where you actually do have to decide how to round - this pack ships FL_FloatToInt for that, with round / floor / ceil / truncate modes. That direction needs a choice because you're throwing away the decimal. This one doesn't.
Installing it
FL_IntToFloat comes with ComfyUI_Fill-Nodes; you install the pack, not the single node. Via ComfyUI Manager, search Fill-Nodes, hit install, restart. Or from the command line:
cd ComfyUI/custom_nodes
git clone https://github.com/filliptm/ComfyUI_Fill-Nodes
then restart ComfyUI. Nothing to download beyond the pack itself for this node.
Worth knowing
Honestly, if a converter is all you need, plenty of packs have one and core ComfyUI can often handle the coercion via a primitive or a reroute depending on your version - so don't install the whole 300-node Fill-Nodes pack just for this. But if you already have Fill-Nodes for its video, sampler, or VFX nodes (which is why most people have it), this is a free little utility sitting right there for the moment a red wire ruins your afternoon. The only "gotcha" is remembering it exists - half the battle with type mismatches is knowing the fix is a tiny bridge node and not a broken workflow.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| int_value | INT | 0-2147483648–2147483647 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| float_value | FLOAT | — |