ComfyUI Node Runs on cloud

Float

A decimal value you set once and reuse

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
Float
    • FLOAT
    Value1.00

    DF_Float is a variable node: a single box where you type a decimal number, and it hands that number out as a FLOAT to anywhere in your graph. That's it. It sounds trivial - and it is - but it's the entry point to every Derfuu math chain. When you want one denoise value, one ratio, one strength driving several nodes at once, you set it here and wire it out, instead of typing the same number into five different widgets and forgetting to update one of them.

    How it works

    You enter a value on the widget and the node outputs it as a float. There's no computation; it's a source. The value it emits is whatever you last set (default 1). Think of it as a named constant you can route around the canvas.

    The inputs and outputs that matter

    • Value (FLOAT, default 1, steps of 0.01) - the number you set.
    • Output: FLOAT - that number, fanned out to as many consumers as you like.

    There's genuinely nothing else to configure.

    Where it fits

    The point of a variable node is single-source-of-truth. Say a denoise strength, a LoRA weight, and a ratio-scaler all want to move together - drive them from one DF_Float and you change one number to change all three. It's also the natural starting node for a math formula: a DF_Float into Multiply into Divide and so on, building a computed dimension or weight off one driver. For a whole number instead of a decimal, use Derfuu's Integer node; for text, use Text.

    How to install it

    ComfyUI Manager: search Derfuu_ComfyUI_ModdedNodes, install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes
    

    then restart. No dependencies, no model downloads - plain Python.

    Common issues & troubleshooting

    A node won't take it because it wants an INT. Float and int are different types in ComfyUI. If the consumer expects a whole number, run this through Ceil, Floor, or use the Integer node instead.

    You changed the value but the output didn't update. Make sure you actually committed the widget edit (click away from the field) and re-ran the graph.

    Do you even need it? Modern ComfyUI ships a native Primitive node that does the same job, and many packs offer float constants. DF_Float is here mainly because so many older workflows already use it - for a fresh graph, the built-in primitive is one less dependency.

    Missing/red node in an inherited workflow. Derfuu has deleted deprecated nodes on updates rather than keeping them labeled, so an old graph can point at a name that's gone; reconnect a current copy. A ModuleNotFoundError about Derfuu_ComfyUI_ModdedNodes_legacy means a duplicated folder - keep one, named Derfuu_ComfyUI_ModdedNodes.

    CategoryDerfuu_Nodes/Variables

    Inputs (1)

    NameTypeDefaultDescription
    ValueFLOAT1.00

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT