Float
One decimal number you can route across the whole graph
- FLOAT
JWFloat is the decimal-number twin of JWInteger: it holds one floating-point value and outputs it on a wire. CFG scale, denoise strength, a LoRA weight, a ControlNet strength - all of those are floats, and this node lets you park one out in the open and feed it wherever it needs to go.
The reason you'd bother instead of just typing the number into the sampler is reuse and legibility. Say you're matching a LoRA weight and a ControlNet strength to the same value while you tune a workflow. Wire one JWFloat into both and you adjust them together from a single box, instead of hunting through the graph editing two widgets and hoping you kept them in sync. It's the utility-node mindset - the node makes nothing, it just makes the workflow easier to drive. That's exactly the niche packs like this one fill, sitting quietly beside the models that do the actual generating.
How it works
Nothing to it. You type a decimal, the node emits that decimal. No math, no rounding, no state carried between runs. It's a labelled constant with an output socket.
The inputs and outputs that matter
value(FLOAT) - the number, default0. The range runs to ±1×10¹⁷, so denoise values, CFG, weights - none of them will ever come close to the limit. Type your value in.- Output:
FLOAT- the same number on a wire, ready to drop into any float socket.
That's the entire surface. What it won't do: it won't clamp your value to a "sensible" range or warn you that CFG 40 is a bad idea. Whatever you type is what comes out - sanity-checking is on you.
How to install it
JWFloat lives in jamesWalker55/comfyui-various, a pack of small utility nodes.
- ComfyUI Manager: search "Various ComfyUI Nodes by Type", install, restart. If it turned up red in a workflow you loaded, use Install Missing Custom Nodes.
- Manually:
Restart afterward. No model files, no heavy dependencies.cd ComfyUI/custom_nodes git clone https://github.com/jamesWalker55/comfyui-various
You'll find it under the jamesWalker55 category once ComfyUI restarts - double-click the canvas and type "Float."
Common issues
- A note on precision. ComfyUI's float widgets round for display and there's normal floating-point imprecision under the hood, so a value can read as
0.10000000149somewhere downstream. That's cosmetic - it won't change your image. If you need an exact-looking number for a filename or a label, convert it with a companion node like JWFloatToString and control the formatting there. - Node shows up red. The pack isn't installed. Install via Manager or clone the repo, then do a full restart, not just a browser refresh.
- "Isn't this just the built-in primitive?" For a single downstream use, yes - the widget on the target node already does the job. JWFloat pays off when one value should feed several nodes at once, or when you want an obvious labelled control at the edge of a crowded graph. If neither applies, type the number directly and move on.
Keep in mind it's a constant, not a scheduler: it won't ramp a value across steps or vary it over a batch. It sits on whatever you set and hands out that one number every run.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | FLOAT | 0.00-100000000000000000–100000000000000000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |