Int to Float
Int to Float — the conversion that makes math nodes stop arguing
- float_value
The mirror image of the pack's Float to Int, and just as easy to overlook until you need it. This node takes a plain integer and hands you the same number as a float. It sounds pointless - 5 and 5.0 are the same value, right? - until you try to wire an INT into a node that only accepts FLOAT inputs and the connection snaps back at you. ComfyUI is strict about types, and this is the two-second bridge that keeps your graph running.
One required input: value (INT, default 0). One output: float_value (FLOAT). The mechanism is a one-liner - float(value) - and there's genuinely nothing else to configure. An int goes in, its float representation comes out, and 5 becomes 5.0.
Why this gets used
The most common trigger: you computed an integer somewhere (a width from Image Dimensions, a count from a Counter, a step count from math) and a downstream node expects a decimal. A FLOAT input will reject the INT wire outright, and you have two options - rebuild the value as a float, or drop this converter in. The converter is the one-box fix. It also pairs with the pack's Float to Int to form a complete conversion round trip, so you can freely move between integer and decimal domains without rebuilding graph sections.
One thing worth knowing: because an int is exactly representable as a float (up to huge values), this conversion is lossless - nothing gets truncated, no precision is lost. It's the safe direction of the two conversions. The pack's Float to Int truncates; this one is exact, and the only "gotcha" is remembering it exists when a wire won't connect.
Where it fits
The natural pairing in this pack: after you've used Constant Int or a Counter for whole-number bookkeeping, but you're feeding a value into something like a scale factor or CFG path that wants floats. It's glue - unglamorous, invisible when it works, and exactly the node you forget you have until a red wire appears.
Installing it
Standard Utilitools install:
cd ComfyUI/custom_nodes
git clone https://github.com/aesethtics/ComfyUI-Utilitools
or search "Utilitools" in ComfyUI Manager and restart ComfyUI. It's under Utilitools → Conversion, next to Float to Int and Whatever To String. No dependencies, no model files, no requirements.txt - the entire pack is pure Python. It's a tiny pack nobody's writing threads about, but the conversion trio quietly unblocks more graphs than it gets credit for.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| float_value | FLOAT | — |