π§ Simple Math Slider low-res
A coarse 0-10 dial mapped onto your real range
- FLOAT
- INT
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) andmax(FLOAT, default 1) - the real rangevaluegets 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.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 50β10 | β |
| min | FLOAT | 0.000-18446744073709550000β18446744073709550000 | β |
| max | FLOAT | 1.000-18446744073709550000β18446744073709550000 | β |
| rounding | INT | 00β10 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | β |
| INT | INT | β |