Nodes/ComfyUI-RvTools_v2/Float to String
ComfyUI Node

Float to String

Turn a number into text so it can live in a filename or a label

By r-vage·Created about a year ago·Updated 5 months ago· 23
Float to String
    • STRING
    float_0.00

    ComfyUI keeps numbers and text in separate lanes, and every now and then you need a number to cross over. Filenames, display labels, prompt fragments - all strings. Float to String takes a FLOAT and hands you the same value as a STRING, so a denoise of 0.35 can become the 0.35 in a filename like img_0.35.png.

    How it works

    The float_ input is a FLOAT widget (default 0, clamped to 0–1,000,000) and the node returns str(float_) - plain Python string conversion, no formatting, no rounding, no trimming. That means 1.0 comes out as "1.0" and 0.35 comes out as "0.35". What you see is what you get.

    Two practical notes. First, the input widget only goes up to 1,000,000, which is plenty for denoise/CFG/weights - but if you need a bigger number as text, feed the node from another float source rather than the widget (though note it isn't marked forceInput, so the widget is the normal path). Second, if you want the string to look prettier - two decimal places, no trailing zero, % suffix - this node won't do it; you'd chain it into a text formatting node afterward. It converts, it doesn't style.

    Where you'd use it

    • Filenames. You're building a save path and the denoise or seed you want in the name is a float. This is the bridge.
    • Debugging. You want to see what value a node is actually emitting. Pipe the float here, then into a Show Text node.
    • Labels and metadata. Embedding a CFG or strength value into an output image's caption or a sidecar text file.

    What's on the node

    • float_ - the FLOAT to convert (default 0, 0–1,000,000).
    • STRING output - the text form of the value.

    That's the entire surface. It's a two-widget node, and its whole personality is "does one thing, does it predictably."

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/r-vage/ComfyUI-RvTools_v2
    # restart ComfyUI
    

    Or search "ComfyUI-RvTools_v2" in ComfyUI Manager. No models to download; deps are the pack's standard torch/numpy/Pillow/opencv-python/pilgram.

    The caveat that comes with every node here

    The pack is flagged as unmaintained in its own README, which points to ComfyUI_Eclipse as the successor. And the RvTools brand has a specific bit of history: the original ComfyUI-RvTools repo vanished from GitHub in early 2025, breaking shared workflows and generating a small r/comfyui thread of people trying to recover it. v2 is the renamed, still-installable version. For a conversion node this small, that history is mostly trivia - but if a downloaded workflow demands it, you now know exactly which repo to clone.

    Category🫦 RvTools II/ Conversion

    Inputs (1)

    NameTypeDefaultDescription
    float_FLOAT0.000–1000000

    Outputs (1)

    NameTypeDescription
    STRINGSTRING