π§ CR Float To String
Turn a number into text in ComfyUI
- STRING
- show_help
Another small but genuinely useful adapter. CR Float To String takes a float and hands you its text form, so you can feed a number into anything that wants a STRING - a caption, a filename, a label burned onto an image. ComfyUI won't auto-convert types, so when you've got a numeric value and a text input, this is the bridge.
It's a conversion node in Comfyroll Studio, the utility pack by Suzie1 and RockOfFire. One input, one job.
When you'd reach for it
The obvious use is display: pipe a float - a CFG value, a denoise setting, a computed score - into CR Draw Text or an overlay node to stamp the number onto an image. It's also handy for building dynamic filenames, or for text-concatenation chains where you're assembling a caption out of several pieces and one of them is a number.
The inputs and outputs
float_- the value to stringify (note the trailing underscore in the name - that's just how it's exposed; its accepted range runs 0 to 1,000,000).- Output STRING - the text form, plus show_help, a wiki-link string you can leave unconnected.
There's no formatting control - you get the number's default string representation (so a value like 3.0 renders with its decimal, 3.14 keeps its digits). If you need a specific number of decimal places or a particular format, do that shaping in a text node downstream.
Installing it
ComfyUI Manager β search Comfyroll Studio β install β restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
then restart. No dependencies to fetch.
Common issues
The text has more (or fewer) decimals than you wanted. There's no format option here - the string is whatever Python's default float-to-text gives. Trim or pad it with a text-operation node afterward if it matters.
It won't connect to the target. Check the downstream input genuinely wants a STRING - some nodes take a FLOAT directly and don't need the conversion.
The whole pack won't load. A Comfyroll NameError on startup (its graphics module can fail to import and take the entire pack down) isn't this node - it's a missing dependency elsewhere in the pack. Find the first real traceback in the console, install the missing library into ComfyUI's Python, and restart.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| float_ | FLOAT | 0.000β1000000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | β |
| show_help | STRING | β |