ComfyUI Node

Constant Float

Constant Float — one number, many wires, one place to change it

By aesethtics·Created about a year ago·Updated about a year ago· 1
Constant Float
    • value
    value0.000

    Floats are the numbers you tune - CFG, denoise strength, LoRA weight, scale factors. And the first time you set the same denoise value in three different nodes by hand, you start wishing there was one box that held it. That's this node: a single FLOAT value, a single FLOAT output, and nothing else. It's the Utilitools pack's answer to "stop typing 0.7 in five places."

    One required input: value (FLOAT, from -999999 to 999999, default 0, step 0.001). One output: value, the same float. The mechanism is literally a pass-through - return (value,) - because the node doesn't compute anything. It stores a value so the graph can share it.

    When it actually pays off

    The case that justifies it is the "scale factor" or "strength" pattern. Put a Constant Float in, label it "Denoise" or "Upscale Factor," and wire it into every node that needs that number - including the pack's Multiply node, where a single constant becomes a master control for an entire branch. Change it once and the whole workflow follows. The step of 0.001 means you can tune fine (0.7001 if you ever need it), and the range covers everything a sampler or upscaler will accept.

    Because the output is a proper FLOAT, it feeds any float-typed input directly: KSampler CFG and denoise, LoRA strength, ConditioningSetArea weight, and all the pack's math nodes. And unlike typing a number inline, a constant node survives the "which node had that value?" hunt - it's a named, visible source in the graph.

    The honest caveats

    Same caveats as the pack's Constant Int: if the number appears once, this node is just an extra box - type it inline and move on. It's a workflow constant, not a variable; nothing mutates it during a run, so for values that change you want a calculation or a Counter. And don't confuse the two constant types - a FLOAT output won't connect to an INT-only field, so keep Constant Float for decimal inputs and use Constant Int for anything that demands whole numbers.

    Installing it

    Standard Utilitools install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/aesethtics/ComfyUI-Utilitools
    

    or search "Utilitools" in ComfyUI Manager and restart ComfyUI. It's under Utilitools → Constants. No dependencies, no model files, no requirements.txt - pure Python. It's a tiny, low-profile pack, and the constants trio is the quiet foundation that keeps its math and logic nodes tidy.

    CategoryUtilitools/Constants

    Inputs (1)

    NameTypeDefaultDescription
    valueFLOAT0.000-999999–999999

    Outputs (1)

    NameTypeDescription
    valueFLOAT