Nodes/ComfyUI_AC_FUN-V1.0/Math_数字转STR文字高级
ComfyUI Node

Math_数字转STR文字高级

Number to text in one node — for when a prompt or filename wants a string

By A719689614·Created 3 years ago·Updated 8 days ago· 3
Math_数字转STR文字高级
    • STRING
    float0.00
    int0

    Math_数字转STR文字 ("number to STR text") does exactly one thing: takes a number and hands you its string form. The whole node is str(float) - x = str(float), return it. If that sounds trivial, it is. But it solves a real friction point, because in ComfyUI numbers and text live in different worlds. Samplers, strengths, and sizes speak INT and FLOAT; prompts, filenames, and note nodes speak STRING. The moment you want a computed value inside a label, you need a bridge, and this is the pack's bridge.

    It pairs naturally with the pack's other math nodes. Run Math_数学表达式 to compute something, or take the STRING output straight off Math_X变量值 / Math_Y变量值 (they already emit text). But when you're holding a plain numeric socket - a seed, a width, a CFG from any node - and you want it as text, this is the quick convert.

    The inputs

    • float - a FLOAT input. Key detail: it's a forceInput socket, meaning there's no widget to type into. You must wire a number into it. Feed it from a primitive, a sampler's converted-to-input value, or any float output. That's the whole point - it converts what the graph gives it, not what you type.
    • tips - the author's label ("数字转文字"), decorative. Ignore it.

    Output is a single STRING. Wire it into a prompt assembler, a filename formatter, a text display, or the pack's math expression node if you want to build strings out of numbers.

    Installing the pack

    • ComfyUI Manager: search "ComfyUI_AC_FUN" and install.
    • Manual:
    cd ComfyUI/custom_nodes
    git clone https://github.com/A719689614/ComfyUI_AC_FUN-V1.0
    

    Restart ComfyUI. The pack is Cc啊程's (a Bilibili creator and architect by trade) Chinese-labeled wrapper suite; no model downloads, no heavy dependencies, everything under 🌌AC_FUNV1.0.

    Bottom line

    A one-line node that saves you a convert step. It's not going to change your life, but if you're doing anything with dynamic filenames or prompts built from numbers, it's the kind of small utility that quietly unblocks a workflow. Wire in a number, get text out. That's the deal.

    Category🌌AC_FUNV1.0/🔯MathTool

    Inputs (2)

    NameTypeDefaultDescription
    floatoptFLOAT0.00
    intoptINT0

    Outputs (1)

    NameTypeDescription
    STRINGSTRING