Nodes/ComfyUI Essentials/πŸ”§ Simple Math Slider low-res
ComfyUI Node Runs on cloud

πŸ”§ Simple Math Slider low-res

A coarse 0-10 dial mapped onto your real range

By cubiqΒ·Created 3 years agoΒ·Updated about a year agoΒ· 1,155
πŸ”§ Simple Math Slider low-res
    • FLOAT
    • INT
    β—„value5β–Ί
    β—„min0.000β–Ί
    β—„max1.000β–Ί
    β—„rounding0β–Ί

    A plain float slider in ComfyUI is precise but fiddly - you're nudging a thin bar trying to land on 0.73 exactly, or typing numbers by hand. Simple Math Slider low-res flips that trade: you get a coarse, easy-to-grab integer dial with only 11 positions (0 through 10), and the node maps whatever notch you land on onto your real target range. Big, chunky steps for exploring; the actual precision lives in the mapping, not in your mouse control.

    How it works

    You drag value between 0 and 10 - that's the "low-res" part, deliberately coarse so it's fast to sweep through. The node then linearly remaps that 0-10 range onto whatever min and max you've set (defaults 0 and 1, but you can point it anywhere - CFG 1-20, a resolution range, a seed offset, whatever you're exploring), and hands you back the result as both a FLOAT and an INT. rounding controls how many decimal places the FLOAT output keeps, so you're not stuck with long floating-point tails if you don't need them.

    This is the kind of node you reach for when you want to explore a parameter space quickly rather than dial in an exact number - sweep the coarse slider across a batch, eyeball results, then switch to a precise input once you know roughly where you want to land.

    The inputs and outputs that matter

    • value (INT, 0–10, default 5) - the coarse dial you actually move.
    • min (FLOAT, default 0) and max (FLOAT, default 1) - the real range value gets mapped onto.
    • rounding (INT, 0–10, default 0) - decimal places to round the FLOAT output to; 0 means no rounding.

    Two outputs: FLOAT (the mapped, optionally rounded value) and INT (same mapping, as an integer) - so you can wire this into whichever kind of input your downstream node actually wants without a separate conversion node.

    How to install it

    Via ComfyUI Manager: search "ComfyUI Essentials," install, restart. Manually:

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

    Restart ComfyUI. Part of cubiq's (Matteo Spinelli's) essentials pack, currently maintenance-only - this node's simple enough that isn't much of a concern.

    Common issues

    Set min/max before trusting the output. The defaults are 0-1, so if you're driving something like CFG or a step count and forget to change min/max, you'll get values that don't make sense for that parameter. This is the one setup step people skip.

    The dial only has 11 positions. That's by design, not a bug - if you need finer control than 11 discrete steps across your range, this isn't the right node; reach for a plain float widget or the pack's Simple Math Percent instead.

    FLOAT vs INT output confusion. Both outputs represent the same mapped value, just typed differently - use whichever socket type your downstream node expects. If you wire both, they'll always agree (modulo rounding), so there's no risk of them drifting apart.

    Categoryessentials/utilities

    Inputs (4)

    NameTypeDefaultDescription
    valueINT50–10β€”
    minFLOAT0.000-18446744073709550000–18446744073709550000β€”
    maxFLOAT1.000-18446744073709550000–18446744073709550000β€”
    roundingINT00–10β€”

    Outputs (2)

    NameTypeDescription
    FLOATFLOATβ€”
    INTINTβ€”