ComfyUI Node

Float

A Float constant, when you want your numbers to come from a node

By Scorpiosis0·Created 10 months ago·Updated 2 months ago· 3
Float
    • float
    value0.00

    Float is the plainest node in the WtlNodes logic pack: a single widget that outputs a floating-point constant. Type a number, get that number on the wire. No state, no math, no surprises.

    If that sounds trivial, that's because it is - and that's fine. In a graph, constants as nodes exist so you can drive a value from a visible, labeled, tweakable widget instead of an unlabeled number buried in the middle of some other node's settings. This one fills that role inside the pack's logic set (Int, Float, Text, and the arithmetic operators), so if you're already using WtlNodes for its color and transform work, it keeps your graph visually consistent.

    The input

    • value - a FLOAT from −1,000,000,000 to 1,000,000,000, step 0.01. Adjustable as a slider or by typing; the range is effectively unlimited for any real workflow.

    One output: float.

    When you'd use it

    • Driving a shared parameter. Set a value once, wire it to multiple nodes, and change one widget instead of hunting through five node settings.
    • Supplying math ops. The pack's Add/Subtract/Multiply/Divide/Square all take numeric inputs, and constants are what feed them.
    • Dropping a number anywhere a FLOAT is expected. The workhorse use: any node with a numeric field that accepts a wire instead of a widget.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/Scorpiosis0/ComfyUI-WtlNodes.git
    

    Restart ComfyUI, or search "WtlNodes" in ComfyUI Manager.

    The honest gotcha

    Core ComfyUI already has a Float node, and so does roughly every logic pack in the ecosystem. There is no functional reason to prefer this one unless you're standardizing on WtlNodes' logic set or you want the same source of truth for a pack-based workflow. It's a fine node that does one trivial thing correctly - just don't install the whole pack expecting this node to be the reason. The color and effect nodes are the reason.

    CategoryWtlNodes/logic

    Inputs (1)

    NameTypeDefaultDescription
    valueFLOAT0.00-1000000000–1000000000

    Outputs (1)

    NameTypeDescription
    floatFLOAT