Nodes/Endless ️🌊✨ Nodes/β™ΎοΈπŸŒŠβœ¨ Integer to X
ComfyUI Node

β™ΎοΈπŸŒŠβœ¨ Integer to X

Integer to X β€” the one converter in the family that got it right

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 69
β™ΎοΈπŸŒŠβœ¨ Integer to X
    • FLOAT
    • NUMBER
    • STRING
    β—„IntegerValue0β–Ί

    One integer in, three sockets out: that's the β™ΎοΈπŸŒŠβœ¨ Integer to X in a sentence, and it's the version of the pack's converter family you'd actually reach for. It takes an IntegerValue and hands you the same number as a float, a NUMBER, and a string, so you can feed one source value into a bunch of differently-typed sockets without a forest of single-purpose cast nodes.

    Where it earns its keep: you've got a seed or a step count from one node, and one downstream node wants a float, another wants text for a filename, a third wants the flexible NUMBER type. Rather than three converters, this gives you all three from one input. It's glue - unglamorous, exactly the thing that keeps a graph from turning into a pile of incompatible wire types.

    How it works

    One input:

    • IntegerValue - INT.

    Three outputs:

    • FLOAT - the integer as a float (5 β†’ 5.0).
    • NUMBER - also handed back as a float in the actual implementation. Worth knowing: the pack's source returns float() for both the FLOAT and NUMBER outputs here, so if you were expecting a true integer on the NUMBER socket, you're getting 5.0. Harmless in almost every case - ComfyUI treats NUMBER as a superset - but it's the kind of small inconsistency that tells you how lightly-tested this family is.
    • STRING - str() of the value, 5 β†’ "5".

    Unlike the pack's Integer to Number and Integer to String, which ship with a forgotten-tuple bug that leaves them with no registered output, this node declares its return types correctly as a real tuple. It works.

    Installing it

    Standard pack install:

    • ComfyUI Manager β†’ Install Custom Nodes β†’ search "Endless" / "Endless-Nodes".
    • Or clone it in:
    cd ComfyUI/custom_nodes
    git clone https://github.com/tusharbhutt/Endless-Nodes
    

    Restart ComfyUI. No pip dependencies at the pack level.

    The honest caveat

    Legacy status applies here too: the ESS prefix means pre-June-2025 pack, and the current repo no longer ships the converter classes. Old workflows that reference this class will flag it missing on a fresh install, which is a shame because this is one of the pack's working converters. If you're rebuilding, ComfyUI's core has its own numeric conversion primitives in recent versions, and those are the safer long-term bet for a one-off cast. But if an old Endless workflow has an Integer to X in it, it'll do the job - feed it an integer, grab whichever socket fits, and don't overthink the NUMBER-vs-FLOAT detail.

    CategoryEndless 🌊✨/Converters/Int

    Inputs (1)

    NameTypeDefaultDescription
    IntegerValueINT0β€”

    Outputs (3)

    NameTypeDescription
    FLOATFLOATβ€”
    NUMBERNUMBERβ€”
    STRINGSTRINGβ€”