ComfyUI Node

Float

One source of truth for your decimal values

By r-vageΒ·Created 10 months agoΒ·Updated a day agoΒ· 31
Float
    • float
    β—„value1.00β–Ί

    ComfyUI's most common silent bug isn't a broken sampler - it's the same denoise typed into four different widgets, and one of them still saying 0.6 while the others say 0.5. The Float node is the boring, correct fix: one widget, one value, fanned out to every consumer that needs it.

    What it is

    A typed primitive value node. You set a number, it outputs that number as a FLOAT. That's the entire job, and it's the right size for the job. In the "one source, many consumers" pattern, this is the source: define the value once and wire it to every node that needs it, so you edit in one place instead of five.

    Eclipse ships a full primitive family alongside it - Boolean, Integer, String, Seed - and this is the decimal member. It's the explicit-typed cousin of ComfyUI's old polymorphic Primitive node: instead of letting the node infer its type from whatever you plug it into, you get a FLOAT that always knows what it is. That's one less surprise when your graph gets big.

    How it works

    The input is value, a FLOAT with a default of 1.0 and a step of 0.01 - so it plays nice with the fractional settings (denoise, strength, CFG tweaks) that dominate real workflows. The output is named float. execute does a defensive cast: whatever comes in, it forces to Python float, so a stray integer or string doesn't slip through into your sampler as a weird type. One small nicety: if the value can't be coerced, it falls back to 1.0 rather than crashing.

    What you actually set

    Just value. The interesting decisions happen at the consumer end: for a KSampler, right-click the widget you want to drive (say denoise) and choose "Convert widget to input," then wire this node's output into the new socket. From then on the sampler takes its marching orders from the Float node. Change it once, everything downstream follows.

    Install

    Ships in ComfyUI_Eclipse (formerly RvTools, rewritten and renamed in v4.0.0). ComfyUI Manager β†’ search ComfyUI_Eclipse β†’ install β†’ restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/r-vage/ComfyUI_Eclipse
    

    It shows up under Eclipse β†’ Primitives. No models, no extra dependencies beyond the standard stack.

    Troubleshooting

    • The number keeps changing between runs: that's not this node. If the value is generated or a seed is involved, check control_after_generate upstream - set widget control mode to "Before" once and you'll stop losing values.
    • Sampler ignores the wired float: make sure the target widget was actually converted to an input; a widget that still has its own value overrides nothing, but a converted socket that's left unconnected may silently use its default.
    • Node missing after install: restart and check the console for import errors, then pip install -r custom_nodes/ComfyUI_Eclipse/requirements.txt if a package is flagged.
    CategoryπŸŒ’ Eclipse/ Primitives

    Inputs (1)

    NameTypeDefaultDescription
    valueFLOAT1.00Float value to output.

    Outputs (1)

    NameTypeDescription
    floatFLOATβ€”