Nodes/ComfyUI Essentials/πŸ”§ Simple Math Float
ComfyUI Node Runs on cloud

πŸ”§ Simple Math Float

Simple Math Float β€” a clean float source for any decimal input

By cubiqΒ·Created 3 years agoΒ·Updated about a year agoΒ· 1,155
πŸ”§ Simple Math Float
    • FLOAT
    β—„value0.00β–Ί

    The plainest node in the math family: a box that holds one decimal number and sends it out as a FLOAT. You set a value, and any node that wants a float - a weight, a cfg, a denoise, a blend factor - can read it off this single, clearly-labeled source.

    Why not just type the number into the target node's own widget? Because when the same value needs to feed several nodes, you want one place to change it, not five. Simple Math Float is that one place.

    What it does

    One input, one output. value is a FLOAT (default 0, step 0.05, and the range is effectively unbounded - huge negative to huge positive). The output is that same FLOAT. That's the whole node.

    Its job is to be a named, reusable float constant on the canvas. Wire its output to three different nodes and now one edit updates all three. It's the difference between a hard-coded number scattered through your graph and a single knob you can find and turn.

    Where it earns its place

    • Shared parameters. You're running the same LoRA weight or denoise into multiple branches and want them to stay in lockstep - drive them all from one Simple Math Float.
    • Feeding math. The Essentials logic nodes (Simple Comparison, Simple Math Condition) compare and compute on values; Simple Math Float is a tidy way to supply one of the operands.
    • Readability. A float sitting in its own labeled node, with a wire you can trace, is easier to reason about than a number buried three panels deep in some sampler's settings.

    If you want the same thing but as a draggable control, look at Simple Math Slider in the same pack - it maps a slider onto a range and outputs both float and int. Simple Math Float is the type-a-number version for when you know the exact value you want.

    Installing it

    Part of ComfyUI Essentials by cubiq - Matteo Spinelli, the developer behind ComfyUI_IPAdapter_plus, so this is a trusted toolbox rather than a random pack:

    • ComfyUI Manager: search "ComfyUI Essentials" β†’ Install β†’ restart.
    • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/cubiq/ComfyUI_essentials, install requirements.txt, restart.

    Spot it by the πŸ”§ wrench and the + on the class name (SimpleMathFloat+).

    Gotchas

    Mind float vs int. This node outputs a FLOAT, and some nodes demand an integer (steps, dimensions, batch counts). Feed a float where an int is required and you'll get a type mismatch or silent rounding. If you need a whole number, use an int source (Simple Math Slider outputs both types, which sidesteps this).

    There's essentially nothing else to break - it's a constant emitter. The only standing caveat is the pack itself: cubiq set ComfyUI Essentials to maintenance-only in April 2025. The nodes still work fine broadly, but if this one goes red as "missing" after a ComfyUI update, the pack didn't load - check the startup log for an import error and reinstall via Manager, or roll ComfyUI back. If you already run pysssss's Custom Scripts or KJNodes, they carry similar math primitives, so there's no need to stack packs just for this.

    Categoryessentials/utilities

    Inputs (1)

    NameTypeDefaultDescription
    valueFLOAT0.00-18446744073709550000–18446744073709550000β€”

    Outputs (1)

    NameTypeDescription
    FLOATFLOATβ€”