Nodes/ComfyUI-AC_FUNV2.0/Int_数字浮点型
ComfyUI Node

Int_数字浮点型

One float value, fanned out to every node that needs it

By A719689614·Created 3 years ago·Updated 14 days ago· 12
Int_数字浮点型
    • FLOAT
    Float0

    This is the most boring node in the ComfyUI-AC_FUNV2.0 pack, and that's the point. Int_数字浮点型 is a float value node: one number in, the same number out, nothing else happens. You type a value, it hands it back on a FLOAT socket. The display name translates to "number, floating-point type," which is exactly what it is.

    Boring nodes earn their keep as plumbing. The pattern is: right-click a widget on some other node - the CFG scale on a KSampler, a denoise value, a strength slider - choose Convert widget to input, and wire this node's output into the socket it creates. Now that value has one authoritative source, and you can fan it out to five different nodes from a single socket instead of typing it into each one and forgetting to update the fourth. The KB's plumbing doc says it straight: these nodes exist to fight repetition (same value wired to five places) and illegibility (a graph too large to read). That's this node's whole job.

    The inputs are minimal. A single Float field - FLOAT type, default 0, range 0 to 100,000,000,000,000,000, step 1. The output socket is FLOAT. So in practice: set 1.5 for a CFG, wire it to the KSampler, and if you later want to try 1.3 you change it in exactly one place.

    The honest take: you don't need this node. ComfyUI core ships PrimitiveFloat and the polymorphic Primitive node that do the same job, and converting a widget to input gives you a built-in value source without adding a node at all. What this version offers over core is... basically nothing functionally - it's one specific author's take on a primitive, included because the pack's creator (a Chinese ComfyUI teacher on Bilibili) bundled his own set of utility nodes so his tutorials don't depend on extra packs. It works fine; it's just not special.

    If you do use it, two small things to know. First, the step is 1, so the little arrow buttons on the widget step the value by whole numbers - but you can still type decimals straight into the box (that's a widget quirk, not a limitation; type 0.25 and it sticks). Second, despite the pack also shipping an integer sibling (Int_数字整形), this one is the float - grab the right one when you're hunting through the ♑AC_FUNV2.0 category, because the two sit right next to each other and the names differ by a couple of characters.

    Install is the shared pack install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/A719689614/ComfyUI-AC_FUNV2.0
    

    restart, done. No models, no dependencies beyond stock ComfyUI. It's a 300-word utility node and it deserves a 300-word article - grab it if you like having a dedicated float source on the canvas, skip it if you'd rather use the built-in primitive. Your workflow won't know the difference.

    Category♑AC_FUNV2.0

    Inputs (1)

    NameTypeDefaultDescription
    FloatFLOAT00–100000000000000000

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT