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

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

Number to X β€” three numeric outputs from one NUMBER input, truncation included

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 68
β™ΎοΈπŸŒŠβœ¨ Number to X
    • FLOAT
    • INT
    • STRING
    β—„NumberValueβ€”β–Ί

    The β™ΎοΈπŸŒŠβœ¨ Number to X is the "all flavors" converter for the flexible NUMBER type: one value in, and you get it back as a float, an integer, and a string on three separate sockets. It's the node you grab when one source number has to feed nodes that each want a different type - a float here, a whole number there, text for a filename over yonder.

    It's the sibling of the pack's Integer to X and Float to X, but pointed at NUMBER, which matters because NUMBER accepts both INT and FLOAT connections. That makes this the most forgiving converter in the family: whatever numeric thing you're carrying - a denoise strength from a slider, a weight from a loader, a seed from anywhere - it plugs straight in.

    How it works

    One input:

    • NumberValue - type NUMBER.

    Three outputs:

    • FLOAT - the value as a float.
    • INT - the value as an integer, via Python's int(), which truncates. 4.9 becomes 4, not 5. That's the one thing to keep in mind with this node: if you're converting a float down to an int and you needed rounding, you'll get silent truncation instead.
    • STRING - str() of the value, for filenames and labels.

    Nothing is configurable and nothing is surprising beyond that truncation - it's a straight set of casts on the same source value.

    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 top-level pip dependencies.

    The honest caveat

    Legacy, like the rest of the ESS family: pre-June-2025 pack, removed in the rebuild, and a fresh install won't give you this class - an old workflow referencing it will flag it missing. That's the main reason to reach for a maintained converter if you're building new.

    If you're keeping an old Endless workflow alive, this node is one of the good ones: the return types are declared properly (unlike Number to Float's broken siblings), the outputs work, and the only real gotcha is that int() truncation on the INT socket. Feed it a 3.9 and know you're getting 3. Beyond that it's exactly the boring, reliable type-cast glue it claims to be.

    CategoryEndless 🌊✨/Converters/Number

    Inputs (1)

    NameTypeDefaultDescription
    NumberValueNUMBERβ€”

    Outputs (3)

    NameTypeDescription
    FLOATFLOATβ€”
    INTINTβ€”
    STRINGSTRINGβ€”