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

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

The NUMBER to FLOAT converter, for when ComfyUI's type system gets picky

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

    If you've hit a red wire that won't plug in, you've met ComfyUI's numeric type system. The β™ΎοΈπŸŒŠβœ¨ Number to Float node from tusharbhutt's Endless-Nodes is a three-line fix for one specific flavor of that: a NUMBER value you need to present as a strict FLOAT.

    ComfyUI has a NUMBER type that accepts both integers and floats - handy, until the node on the other end is declared with FLOAT and refuses the connection. That's the gap this converter exists to close. It's boring. It's also the exact boring thing you reach for at 1 a.m. when the sampler's denoise input is greying out.

    How it works

    One input, one output:

    • NumberValue - type NUMBER, which means it will happily accept an INT or a FLOAT from whatever you connect.
    • Output: FLOAT.

    The implementation is literally float(NumberValue). Whatever comes in gets cast to a Python float and pushed out. No rounding, no clamping, no surprises - 2 becomes 2.0, 0.5 stays 0.5.

    Wire it in front of anything that demands a float: denoise strength, a LoRA weight, CFG on picky nodes. If your value is already a float, this node is a no-op and you can skip it; its real use case is the numeric-soup cases where an upstream node hands you a NUMBER and the target only speaks FLOAT.

    Installing it

    It ships in the Endless-Nodes pack:

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

    Restart ComfyUI afterward. No pip dependencies to babysit - the pack's pyproject.toml declares none, which is one reason installs are painless.

    The honest caveat: legacy node

    This class carries the ESS prefix, which tells you it's from the pre-June-2025 version of the pack. That cleanup ("removed all the old nodes" in the author's words) dropped these converters from the current repo, so a fresh install won't expose this exact class - old workflows that reference it may flag a missing node. The ESS Number to X variant in the same family does float, int, and string in one node if you want the multi-format version.

    For a one-off converter you don't have to think about ComfyUI's core now ships a NUMBER-to-FLOAT primitive in recent versions, which is arguably the cleaner path today. But if you're maintaining an old Endless workflow, this is the node doing the job - and it's honest to say it's a fine, if redundant, cast.

    CategoryEndless 🌊✨/Converters/Number

    Inputs (1)

    NameTypeDefaultDescription
    NumberValueNUMBERβ€”

    Outputs (1)

    NameTypeDescription
    FLOATFLOATβ€”