Int to float
Convert an integer to a float so wires connect
- FLOAT
ComfyUI is strict about types. An INT output won't drop into a FLOAT input - the wire just refuses to connect, even though to you 5 and 5.0 are obviously the same number. This node is the little adapter that fixes that: integer in, float out. It exists because in a graph made of typed wires, you will eventually hit this exact mismatch, and this is the one-node answer.
It's a "Converter" in Derfuu_ComfyUI_ModdedNodes, the utility pack whose whole job is making the graph do arithmetic and glue types together. Name note: current builds call this DF_Int_to_Float - "Int to float" with spaces is the older class name for the same node.
How it works
There's nothing to it. One input Value (INT), one output FLOAT. It takes the whole number and re-emits it as a decimal. 5 becomes 5.0. No rounding, no loss - integers are a subset of floats, so the conversion is exact.
Where you'd actually hit this
The classic case: you set a dimension or count with an Integer node, then want to feed it into a math node like Multiply whose inputs are floats, or into a scaler's float upscale_by. The INT won't connect directly - drop Int to float in between and it flows.
The reverse direction exists too: the Integer node itself takes a float and outputs an INT, so it doubles as a float-to-int converter. Between the two you can move a value freely between the number types your workflow's nodes demand. This is unglamorous plumbing, but it's the difference between a math chain that connects and one that stubbornly won't.
Common issues & troubleshooting
The wire still won't connect. Double-check the actual port types. This converts INT→FLOAT; if you need the other direction (FLOAT→INT), use the Integer node, which outputs an INT from a float input. Getting the direction backwards is the usual mistake.
Old workflow shows a red "Int to float" node. Derfuu has a documented habit of deleting deprecated node classes on pack updates rather than keeping them around, so a graph saved against the old name can break. Replace it with the current DF_Int_to_Float and re-wire.
ModuleNotFoundError: No module named 'custom_nodes.Derfuu_ComfyUI_ModdedNodes'. Same cause - old module path from a reorg. Update the pack, reload, replace the node.
Do I even need this? Sometimes not - some nodes quietly accept either type. Reach for it only when a connection is actually refused. No point adding converters preemptively.
Install: ComfyUI Manager → search "Derfuu" → install → restart, or cd ComfyUI/custom_nodes && git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes then restart. No models, no heavy dependencies.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| Value | INT | 1-9223372036854776000–9223372036854776000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |