Float Selector
A float value that you can actually type into
- Float
Float Selector is a FLOAT value you type into, and it hands that value back unchanged. "Returns the given FLOAT, unmodified," as the README puts it. It's the pack author's answer to a real ComfyUI annoyance: sometimes you just need a number to exist as a node, with a slider you can adjust, to feed into a socket that demands a wired input.
Why you'd reach for it
ComfyUI's widgets work on a weird split: some nodes let you type values inline, and others (anything with forceInput sockets, like this pack's own conversion nodes) only accept values over wires. When a socket insists on a wire, you need a source node - and Float Selector is that source. Type a value, drag a slider, and out pops a FLOAT.
It's also handy for centralizing a value you reuse: put your CFG or denoise or upscale factor in one Float Selector and wire it to several places, so tweaking one knob changes everything at once instead of editing a dozen widgets.
How it works
The implementation is a passthrough:
def float_selector(self, Float):
return (Float,)
Input:
- Float - with a default of 0, min 0, max 100. That range is the one thing to watch: it's hard-capped at 100, so if you need a float bigger than that (an upscale factor of 2.5 is fine, but a denoise of 1.0 maxes out your slider's world), you'll run into the ceiling.
Output:
- Float - the value, untouched.
Where people get burned
The 0–100 range is the real limitation. Plenty of workflows need floats outside it, and this node will clamp. If you're looking at "why can't I set 150?" - that's it. Use a different float source for out-of-range values.
Other than that, there's not much to get wrong. It's honest about being a passthrough. If you need an integer instead, this pack has the Integer Selector (with a range that goes up to 2^64, so no ceiling complaints there).
Installing it
ComfyUI Manager → search "HavocsCall" → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/HavocsCall/comfyui_HavocsCall_Custom_Nodes
Restart, under HavocsCall/Basic. No requirements.txt, no model downloads - instant.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| Float | FLOAT | 0.000–100 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Float | FLOAT | — |