π§ Simple Math Slider
Simple Math Slider β a draggable knob for any float or int in your graph
- FLOAT
- INT
Typing numbers into a widget is fine until you're tuning something by feel - a denoise, a LoRA weight, a blend factor - and you want to drag it and watch the effect, not keep clicking and retyping. Simple Math Slider gives you an actual slider on the canvas that maps a 0β1 handle onto whatever range you define, and hands the result out as both a float and an int.
It's a small quality-of-life thing that makes a workflow feel less like a spreadsheet and more like a mixing board.
What it does
The slider handle itself moves over value, a 0β1 float (default 0.5). But raw 0β1 is rarely what you want to feed downstream, so the node remaps it:
- min and max - the real range you care about. Set min 0 and max 20 and the slider now spans 0 to 20. Set min 512, max 1536 and you're dragging image dimensions.
- rounding - how many decimal places to keep (0β10). At 0 you get clean whole numbers; at 2 you get two decimals, and so on.
It outputs two things: a FLOAT and an INT of the same remapped value. That dual output is deliberate - some nodes want a float (weights, cfg), others demand an int (steps, dimensions, batch size). You wire whichever the target expects and ignore the other. No separate convert node needed.
Why it's nicer than a plain number box
Two reasons. First, dragging is faster for exploration - you feel the curve of an effect instead of guessing values. Second, the min/max remap means the slider's full travel is dedicated to your useful range. If a LoRA only does anything interesting between 0.4 and 0.9, set min 0.4 and max 0.9 and the entire slider is spent inside the range that matters, giving you fine control where you need it instead of wasting half the travel on values you'd never use.
Where you'd use it
Anywhere you tune by eye and re-run a lot: denoise strength on an img2img, IPAdapter or LoRA weight, cfg, a composite blend, ControlNet strength. Pair it with a Display Any node if you want the exact number printed as you drag.
Installing it
Part of ComfyUI Essentials by cubiq - Matteo Spinelli, the developer behind ComfyUI_IPAdapter_plus:
- ComfyUI Manager: search "ComfyUI Essentials" β Install β restart.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/cubiq/ComfyUI_essentials, installrequirements.txt, restart.
Spot it by the π§ wrench and the + class name (SimpleMathSlider+).
Gotchas
The output values only make sense relative to the min/max you set - the slider position is just 0β1 under the hood. If your downstream value looks wrong, check that min and max are the range you meant, not the leftover defaults of 0 and 1.
The one real risk with this node is the widget itself. Simple Math Slider is a custom-UI node, and custom widgets are exactly the kind of thing that can render badly when ComfyUI overhauls its frontend. cubiq set Essentials to maintenance-only in April 2025, so if a future ComfyUI update makes the slider render as stacked text or refuse to drag, no fix is coming from upstream - your options are to roll ComfyUI back to the version where it worked, or patch the file yourself. For now, the community verdict is that it still works fine. If the node shows up red as "missing," the pack didn't load; check the startup log and reinstall through Manager.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| value | FLOAT | 0.5000β1 | β |
| 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 | β |