ComfyUI Node

4 Floats

Bundle four numbers into one wire

By mirabarukaso·Created 2 years ago·Updated 6 days ago· 206
4 Floats
    • float_list
    float_11.00
    float_21.00
    float_31.00
    float_41.00

    4 Floats lets you set four float values on one node and send them out together as a single float list. It's the "pack" half of a pack/unpack pair - you bundle four numbers into one wire here, then pull them back apart downstream with 4 Floats from List (FloatListInterpreter4). The point is tidiness: instead of four separate wires snaking across your graph, one list wire carries the whole set.

    Where this actually earns its place is any workflow that juggles a handful of related weights or parameters - think a set of block or region strengths, a few multipliers, or values you want to keep grouped and route as a unit. It's part of ComfyUI_Mira, mirabarukaso's collection of small workflow-glue nodes, in the Numeral family. Like a lot of Mira, it's built around the author's own regional-conditioning and character-select workflows, where passing tidy little bundles of numbers around beats a spaghetti of single floats.

    How it works

    You get four float widgets on the node. It collects those four values into a single ordered FLOAT_LIST and outputs that. No math, no transformation - it's a grouping node. The order you enter them is the order they come out, which matters when you unpack them.

    The inputs and outputs that matter

    • float_1, float_2, float_3, float_4 - the four values, each ranging -10 to 10 (default 1, step 0.01).
    • float_list (output) - a single FLOAT_LIST carrying all four, wired into 4 Floats from List or any node that accepts a float list.

    The natural partner is FloatListInterpreter4, which takes this list back apart into four individual FLOATs at the other end of your graph.

    Installing it

    ComfyUI Manager: search ComfyUI_Mira, install, restart. Or clone:

    cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git
    

    then restart. If loading errors, run pip install -r requirements.txt in the ComfyUI_Mira folder. Node appears under Mira/Numeral.

    Common issues

    • A list is not four separate floats. You can't wire this straight into a node expecting a single FLOAT - it carries all four. Unpack it first with 4 Floats from List (or feed it to something that genuinely takes a list).
    • Order is meaningful. Whatever order you set here is the order the unpacker reads. Keep the two ends consistent or your values land in the wrong slots.
    • It's organizational, not functional. This node doesn't do anything to the numbers. If your graph only has one or two floats, you don't need to bundle them - reach for 1 Float instead. Bundling pays off when you're routing a group of related values together.
    CategoryMira/Numeral

    Inputs (4)

    NameTypeDefaultDescription
    float_1FLOAT1.00-10–10
    float_2FLOAT1.00-10–10
    float_3FLOAT1.00-10–10
    float_4FLOAT1.00-10–10

    Outputs (1)

    NameTypeDescription
    float_listFLOAT_LIST