ComfyUI Node Runs on cloud

Float

A reusable decimal-number source for your workflow

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

    A node that holds a single decimal number and outputs it. That's genuinely all it does - and that's the point. In a ComfyUI graph you often want one value used in several places (a denoise strength, a scale ratio, a CFG), and you don't want to type it into five different widgets and then hunt them all down when you change your mind. Set it once here, wire it out, done.

    It's one of the "Variables" nodes in Derfuu_ComfyUI_ModdedNodes, a utility pack that leans into treating a workflow like a little program with variables and math.

    How it works

    There's a single widget, Value (FLOAT, default 1.0, steps of 0.01), and a single FLOAT output. Type your number, drag the output wherever a float is expected. When you need to change it, you change it in one spot and every consumer updates.

    If you want a whole number instead, its sibling Integer does the same job for INTs. If you want to compute the value rather than type it, feed it through math nodes like Multiply or Subtract - Float is often the starting constant in one of those little math chains.

    Where you'd actually use it

    Honestly, its best use is as a single source of truth for a number you tune a lot. Building a workflow you'll re-run with different denoise strengths? Put the denoise in a Float node up front, wire it into the sampler, and it becomes the one dial you touch. It reads cleaner than digging into a KSampler every time, and if two nodes need the same value, they now genuinely share it instead of drifting apart.

    Fair take: for a value only used once, this is overkill - just type it into the widget that needs it. The Variable nodes pay off when a number travels, or when you're doing math on it. And the modern ecosystem has other options here too (rgthree's constants and Power Puter, KJNodes' primitives), so this is one honest choice among several rather than the only way.

    Common issues & troubleshooting

    The receiving node won't accept the wire. It wants an INT, not a FLOAT. Use Integer, or convert with Int to float's counterpart depending on direction. Type mismatches are the usual snag with the Variable/Converter nodes.

    Node red / missing after an update. Derfuu has a habit of deleting old node classes when the pack is reorganized rather than leaving them deprecated, so updates occasionally break saved graphs. Update via Manager and re-add.

    ModuleNotFoundError: No module named 'custom_nodes.Derfuu_ComfyUI_ModdedNodes'. Old workflow, moved module path from a reorg. Update the pack, reload, replace the stale node.

    Install: ComfyUI Manager → search "Derfuu" → install → restart, or cd ComfyUI/custom_nodes && git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes then restart. No models or extra dependencies - it's pure Python.

    CategoryDerfuu_Nodes/Variables

    Inputs (1)

    NameTypeDefaultDescription
    ValueFLOAT1.00

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT