Float Constant
A one-value float source (deprecated)
- value
There's not much to oversell here: this node outputs a single floating-point number that you type in. That's the whole job. You set a value, and it emits that value as a FLOAT that other nodes can consume - a CFG scale, a denoise strength, a LoRA weight, whatever wants a float. It's the "define a number once, reuse it in several places" pattern.
Fair warning before you build anything around it: it's in the pack's _deprecated_ category. It's kept so older Searge workflows keep loading, and in modern ComfyUI you'd reach for a general-purpose primitives node instead.
How it works
It's a constant. You enter a number in the value field, and the node passes that same number out every run. Where it earns its keep is when you want one number to drive several inputs at once - wire this node's output into three different places and now changing the single field updates all three, instead of hunting down each widget separately. That's the entire value proposition of a "constant" node.
The inputs and outputs that matter
value(FLOAT, default 0, step 0.01) - the number. That's the only thing to set.- Output
value(FLOAT) - the same number, ready to wire anywhere a float is accepted.
No model inputs, no side effects, nothing to configure beyond the number itself.
How to install it
Manager: search SeargeSDXL, install, restart. Manual, opencv first (the pack needs it to import at all, even for a trivial node like this):
python -m pip install opencv-python
cd ComfyUI/custom_nodes
git clone https://github.com/SeargeDP/SeargeSDXL.git
Restart ComfyUI. No model files.
Common issues & troubleshooting
"Why would I install a whole pack for one number node?" You wouldn't. Nobody installs SeargeSDXL for this node - it comes along with the pack and shows up in the menu. If you're not running the Searge SDXL workflow, ignore it.
Type mismatch. It outputs a FLOAT. If the input you're trying to feed wants an INT (a seed, a step count), this won't connect - you need an integer source, not this. Watch the socket colors.
Prefer a maintained primitives pack. Because this is deprecated, and because it's exactly the kind of tiny utility that a general node pack does better, most people use something like rgthree's or ComfyUI's own primitive/constant nodes for this today. Those are maintained and give you constants for every type in one place, rather than one deprecated node per type the way Searge's old _deprecated_/Floats and _deprecated_/Integers groups do. Use this only if you're keeping an old Searge workflow alive.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | FLOAT | 0.00 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| value | FLOAT | — |