Nodes/ComfyUI-JDCN/LogicUtil_Static Number Float
ComfyUI Node

LogicUtil_Static Number Float

Nothing clever, and that's the point

By daxcay·Created 2 years ago·Updated about a year ago· 159
LogicUtil_Static Number Float
    • FLOAT
    number0.00

    LogicUtil_Static Number Float is the node equivalent of a sticky note. You put a number on it, it hands that number back, and it never does anything else. No math, no randomness, no state. One number input in, one FLOAT output out. It's from the LogicUtil subpack of ComfyUI-JDCN, and in a world where half the ecosystem is chasing complexity, a node this dumb is quietly useful.

    Why a "do nothing" node exists

    ComfyUI lets you type numbers straight into most widgets, so a constant node can feel redundant - until it isn't. The case for one:

    • A labeled value. A node with a title and a clear number is self-documenting in a way a bare widget isn't. When you come back to a workflow in three weeks, "denoise floor: 0.35" reads better than a buried slider.
    • One place to change a value that's used many times. Wire this node into several downstream inputs and you edit one spot instead of hunting through the graph. This is the classic "single source of truth" habit, and it pays off exactly the way it does in code.
    • A value that needs to survive being rewired. If you're feeding a number into a logic or comparison node, having it come from a stable socket (rather than a widget on a node you might replace) makes the graph more robust.

    The one input that matters

    Just number, a FLOAT with a default of 0. Type your value, wire the FLOAT output where you need it. It'll feed into anything that takes a float - denoise, CFG, strength, a math node - and ComfyUI's type coercion handles the rest for the most part.

    A couple of honest caveats. The step size on the widget is 0.02, so if you need a precise value like 0.137, type it directly rather than dragging the slider. And it's a constant, not a stored variable - there's no memory here, so if you want a value that changes per run, this isn't the node (the pack's random and iterator nodes are the companions for that).

    Installing it

    It rides along in the ComfyUI-JDCN pack. ComfyUI Manager → Install Custom Nodes → search "JDCN", install, restart. Or manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/daxcay/ComfyUI-JDCN.git
    cd ComfyUI-JDCN
    pip install -r requirements.txt
    

    The pack only pulls in piexif as a dependency, so nothing heavy downloads with it. It's a small two-person utility pack (Daxton Caylor and Jerry Davos), and the Static nodes sit right next to its random and logic nodes - the pack's philosophy is that these tiny building blocks should just exist and stay out of your way. This one is the definition of that: nothing to learn, nothing to break, just a number that stands still while everything else moves.

    CategoryLogicUtil

    Inputs (1)

    NameTypeDefaultDescription
    numberFLOAT0.00

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT