- clip
- CLIP
- FLOAT
Float is the decimal-number node in the Variables for Comfy UI pack: give it a name and a value, and that number becomes something you can drop into a text template elsewhere by name - {strength}, {weight}, whatever you called it - instead of hardcoding it into a prompt string you'll have to hunt down and edit later.
Why you'd reach for it
You've almost certainly written a LoRA weight or a denoise strength directly into a prompt string before - <lora:something:0.8> style syntax, or a caption that mentions "at 0.8 strength" for your own notes. The moment that number needs to appear in two places, or you're building a reusable prompt template with the pack's Format Text node, hardcoding it becomes a liability: you tweak the value once and forget the second copy exists. Float lets you set the number in exactly one place and reference it by name everywhere else.
How it actually works
Same mechanism as every other variable node in this pack: it's built to sit inline on your CLIP wire, not off to the side. Route your checkpoint's CLIP output through it on its way to your CLIP Text Encode node(s). The reason is ComfyUI's execution order - it walks backward from your output nodes (Save Image and friends), pulling in only what they depend on. A node with nothing downstream of it just doesn't run. Wiring Float into the CLIP chain forces it to execute before anything that needs the value it registers.
Inputs and outputs
- variable - the name you'll reference it by, e.g.
strength. Single line. - value - the float itself.
- clip - your CLIP passthrough. This is what makes the node actually fire; don't skip it.
It outputs CLIP (unchanged, so you keep chaining) and FLOAT (the raw value, for wiring directly into something that expects a numeric float input rather than pulling it through a text placeholder).
Installing it
Through ComfyUI Manager: search "Variables for Comfy UI." By hand:
cd ComfyUI/custom_nodes
git clone https://github.com/yolanother/DTAIComfyVariables
Restart ComfyUI. Per the README the only dependency is ComfyUI itself - no pip packages, no models, nothing else to fetch.
Common issues
Not wired into the CLIP chain, so it never runs. This is the recurring gotcha across the whole pack: if Float sits off by itself with nothing downstream, or the clip input is left dangling, ComfyUI has no reason to execute it, and any placeholder that was supposed to pick up its value stays literal, unreplaced text.
Precision and formatting inside templates. If you're feeding this FLOAT into Format Text's value list to fill a placeholder, Python's .format() will stringify it plainly (e.g. 0.8 stays 0.8), which is usually what you want - just don't expect rounding or fixed-decimal formatting out of the box, since that's Python format-spec territory ({strength:.2f}), not something this node adds for you.
Shared-namespace collisions. The README's own framing is "shared global variables" - a flat namespace across the whole graph. Reuse a variable name on two different nodes (even two Float nodes, or a Float and a String) and one silently overwrites the other depending on run order. Keep names distinct.
Sparse community footprint. This is a small, low-traffic, single-maintainer pack. If you hit an odd edge case, don't expect a wall of Reddit threads to bail you out - reading the node's own source tends to be faster than searching for prior art here.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| variable | STRING | — | |
| value | FLOAT | — | |
| clip | CLIP | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| CLIP | CLIP | — |
| FLOAT | FLOAT | — |