Nodes/ComfyUI Multimedia Utilities/🔢 Int To Float Converter
ComfyUI Node

🔢 Int To Float Converter

The one-line node that fixes the most annoying type mismatch in ComfyUI

By thimpat·Created about a year ago·Updated about a year ago· 0
🔢 Int To Float Converter
    • float_value
    int_value0

    Some nodes output whole numbers; others will only accept FLOAT inputs. That mismatch - "why won't my wire snap?" - is one of ComfyUI's most frequent little frustrations, and it usually has no satisfying fix short of swapping nodes. IntToFloatConverter is the boring, correct answer: one INT in, one FLOAT out, nothing else.

    The source is blunt about why it exists, and it's worth quoting in spirit: it's for connecting INT outputs - "like frame_count" - to nodes that only accept FLOAT inputs. It's the designated companion to this pack's CalculateVideoFrameCount, which returns INT; a whole class of downstream nodes (math nodes, schedulers, control nodes) want that same number as a float. Drop this converter between them and the wire clicks.

    • int_value (INT, default 0) - the whole number you're converting. The widget slider won't go below 0, though a wired-in value passes through as-is regardless of that guard.
    • float_value (FLOAT) - the same number, as a float. 42 becomes 42.0.

    That's the entire feature set, and honestly that's fine. ComfyUI is full of these one-liner adapters, and reaching for one beats restructuring a graph around a type quirk. The only takeaway worth having: if you find yourself converting in both directions constantly, step back and check whether you're fighting a bad node choice upstream rather than a missing adapter.

    Installs as part of ThimPatUtils - ComfyUI Manager (search "Multimedia Utilities") or git clone https://github.com/thimpat/ThimPatUtils into custom_nodes/, then restart. It's pure Python (float() under the hood), so it drags in no models and no dependencies of its own. Just remember the pack-level quirk: no requirements.txt ships with it, so the pack's other nodes still need opencv-python and soundfile installed or none of them register - including this innocent little converter, which never touches either library.

    Category🎨 ThimPatUtils/Type Converters

    Inputs (1)

    NameTypeDefaultDescription
    int_valueINT0

    Outputs (1)

    NameTypeDescription
    float_valueFLOAT