Nodes/ComfyUI Essentials/πŸ”§ Simple Math Percent
ComfyUI Node Runs on cloud

πŸ”§ Simple Math Percent

A plain 0-1 slider, wired for reuse

By cubiqΒ·Created 3 years agoΒ·Updated about a year agoΒ· 1,152
πŸ”§ Simple Math Percent
    • FLOAT
    β—„value0.00β–Ί

    Don't overthink this one - it's the plainest node in the whole essentials pack, and that's the point. Simple Math Percent is a slider capped between 0 and 1, stepping in 5% increments, that outputs a plain FLOAT. That's the entire node.

    Why you'd reach for it

    ComfyUI is full of parameters that expect a 0-1 fraction - denoise strength, LoRA weight, an IPAdapter strength, a mask blend, a percentage-based scheduler value. You could type a raw float into every one of those widgets by hand, or expose one as a node in your graph and reuse the value in several places, drive it from a group of nodes, or convert it to an input so something else can control it programmatically. That's what this node buys you: a friendly, bounded widget with a real output socket instead of a bare number buried on some other node's face.

    It's also handy when you're building or sharing a workflow and want the "important" percentage knob to be visually obvious and separate from the rest of the graph - a standalone Simple Math Percent node reads at a glance as "here's the thing you're meant to tune," in a way a widget tucked inside a bigger node doesn't.

    The input and output that matter

    There's exactly one of each:

    • value (FLOAT, 0–1, step 0.05, default 0) - the slider itself.
    • Output: FLOAT - the same number, ready to wire anywhere a 0-1 fraction is expected.

    No conversion, no clamping logic to think about, no hidden behavior. Whatever the slider shows is what comes out.

    How to install it

    Via ComfyUI Manager, search "ComfyUI Essentials" and install. Or manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/cubiq/ComfyUI_essentials
    

    Restart ComfyUI afterward. This is part of cubiq's (Matteo Spinelli's) ComfyUI Essentials pack - same author as the widely used IPAdapter Plus nodes - currently in maintenance-only mode, though a node this simple has essentially nothing left to break.

    Common issues

    There genuinely isn't much to troubleshoot here, which is worth saying plainly rather than inventing problems that don't exist. The one thing worth knowing:

    It outputs 0-1, not 0-100. If a downstream field wants a percentage expressed as 0-100 rather than a fraction, you'll need a multiply step in between - this node deliberately stays in the 0-1 range that most ComfyUI strength/weight/denoise inputs actually expect, since that's the more common convention across the app.

    If a Simple Math Percent node isn't behaving, the far more likely explanation is a graph-wiring mistake elsewhere - check what's actually connected to the output, not the node itself.

    Categoryessentials/utilities

    Inputs (1)

    NameTypeDefaultDescription
    valueFLOAT0.000–1β€”

    Outputs (1)

    NameTypeDescription
    FLOATFLOATβ€”