2 Floats
Two float values from one node
- float_1
- float_2
Exactly what the name says: two float values you set in one node and route wherever you need them. Menu-labeled 2 Floats, it's a numeric source node - the float equivalent of Mira's boolean triggers - for the times you want a couple of related numbers set in one obvious spot instead of scattered across a dozen widgets.
It sounds too simple to bother with, and for a single number it is. Where it pays off is when the same two values need to reach several nodes, or when you want your key numbers pulled out to one labeled node on the canvas instead of buried inside whatever's consuming them. Denoise strength and CFG, two LoRA weights, a pair of matched dimensions - anything where keeping the numbers together in one place makes the graph easier to reason about.
How it works
No math, no logic. You type two numbers; the node outputs them. Each has a fine step of 0.0001, so it's happy with precise values - strengths, ratios, small offsets. It's a constant source, one of the "N of a thing" primitives the Mira pack sprinkles around (there's the boolean 1/2/6 family; this is the float pair).
The inputs and outputs
- float_1 - first value, default
1. - float_2 - second value, default
1. - float_1 / float_2 (outputs) - the two values, passed straight through as
FLOAT.
Wire each output into any float input: a sampler's CFG or denoise, a LoRA strength, a resize scale, a blur amount - anything typed FLOAT.
Installing it
Install the whole pack. ComfyUI Manager: Manager -> Custom Nodes Manager, search ComfyUI_Mira, Install, restart. Or clone:
cd ComfyUI/custom_nodes
git clone https://github.com/mirabarukaso/ComfyUI_Mira.git
Restart. If a load error shows up, run pip install -r requirements.txt inside the ComfyUI_Mira folder and restart. No models.
Common issues
There's basically nothing to break - it's two constants. The only judgment call is whether you need it at all. For a single number that lives in one node, just use that node's own widget. This is for when two values should stay linked and visible in one place, or feed multiple consumers from a single source of truth.
One practical note: it outputs FLOAT, so if a downstream node insists on an INT (many size and count inputs do), you'll need a convert-to-int step in between - floats don't auto-coerce into integer sockets in ComfyUI. If integers are what you actually want, this isn't the node.
It's part of ComfyUI_Mira, mirabarukaso's personal utility pack (the dev behind the WAI Character Select app), built to smooth over the small friction points in their own workflows. A two-float source is nobody's headline feature, but if you've ever wished your two most-tweaked numbers lived in one tidy node, this is that node.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| float_1 | FLOAT | 1.0000 | — |
| float_2 | FLOAT | 1.0000 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| float_1 | FLOAT | — |
| float_2 | FLOAT | — |