Float to Text
When your token strength has to go inside a prompt
- STRING
Float in, string out - with one extra knob. Float to Text takes a number like 0.75 and hands you the text "0.750", so you can push a dynamic value into a prompt, a label, or anything else that wants text. It's the little brother of the pack's Int to Text, and it earns its place the moment you're running a grid and want the actual LoRA strength, CFG, or denoise value printed somewhere a human can read it.
How it works
Nothing exotic: it formats the float with Python's "{:.{}f}".format(...) - the code even carries a comment saying "if this doesn't work, blame Copilot." The two inputs are all there is:
float_input- the number (FLOAT, default 1.0)decimal_places- how many digits after the decimal point (INT, default 3, range 1–10)
The decimal_places knob is the whole point over a plain conversion. Set it to 3 and 0.75 comes out as "0.750"; drop it to 1 and you get "0.8" from the same input. Because it's a fixed-width format, values in a grid all line up visually - which is exactly what you want when those strings are becoming row labels on a comparison sheet.
Why you'd reach for it
Two realistic jobs. First, dynamic prompts: a Text Concatenator from this pack can build "best result at strength {float_to_text}" style prompts where the number tracks your current grid index instead of being hard-coded. Second, grid labels - feed float_input from a Float List node's output and every cell of a Save Image Grid can be labeled with the exact parameter it was generated with. That turns an unlabeled mess of variants into something you can actually compare, which is the whole reason grids exist.
Same type-juggling motivation as Int to Text: ComfyUI won't let a FLOAT wire into a STRING socket, so when you need the number as prose, this is the bridge.
Installing it
Part of comfy-easy-grids, same shared install as every node in the pack. Via ComfyUI Manager, search "comfy-easy-grids". Or:
cd ComfyUI/custom_nodes
git clone https://github.com/shockz0rz/comfy-easy-grids
Restart after. No dependencies beyond stock ComfyUI, no model files - under "EasyGrids" in the Add Node menu, next to its siblings.
Troubleshooting
The only way this surprises you is rounding. It doesn't just truncate - it rounds to the requested decimal places, so 0.666 at two places becomes "0.67", not "0.66". If that matters for your labels, raise decimal_places instead of fighting it. And if your number looks like "1.000" when you expected "1", that's the fixed-width formatting working as designed; it's a feature for alignment, not a bug.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| float_input | FLOAT | 1.00 | — |
| decimal_places | INT | 31–10 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |