βΎοΈπβ¨ String to Num
The Rare String Converter That Keeps Its Decimals
- NUMBER
Most string-to-number converters in ComfyUI land on an integer, because most things that want a number want a whole one. βΎοΈπβ¨ String to Num is the one that doesn't. It parses a string and hands back a general NUMBER type - the kind that keeps its decimals - which makes it the right tool when you're feeding a CFG, a denoise strength, or any float-ish parameter from text.
How it works
Same shape as the pack's other string converters: one text input, one number output, a Python float conversion in the middle. The StringValue input accepts "3.5", "0.75", even " 12 " - and unlike the integer variant, it won't choke on a decimal point. That's the whole trick. It also means "42" works fine; you just get 42.0 on the other side, which downstream nodes accept without complaint.
Where it burns people: a genuinely non-numeric string ("high quality", an empty leftover, a stray comma) raises a parse error, and in ComfyUI that shows up as the node going red and a stack trace in the console. If text can arrive from a wildcard or a prompt-editing node, sanitize before you convert.
Inputs and outputs
- StringValue (STRING) - the text to parse.
- NUMBER output - the parsed value with its decimals intact. Wires into any FLOAT/NUMBER input: CFG on a KSampler, denoise, LoRA strength, you name it.
One practical difference from String to Integer worth knowing: an INT input socket generally won't accept a NUMBER output, so for integer-only targets (steps, width, height) grab the integer variant instead. This node is for the float family.
Caveat: it's a legacy node
ComfyUI still lists this one, but it comes from the Endless pack's pre-2025 life. The June 2025 rebuild removed the old node set, and the converter module is gone from the current repo - so on a fresh install you may search the Endless πβ¨ menu and find it missing. It exists on comfy.icu because the pages outlived the code. If an old workflow drags it in and ComfyUI asks for a missing node, this is the explanation. For a supported equivalent, the pack's own String to X node covers INT, FLOAT, and NUMBER from one input, and plenty of bigger packs ship a string-to-float converter that's still being maintained.
Installing the pack
ComfyUI Manager (search Endless Nodes) or:
cd ComfyUI/custom_nodes
git clone https://github.com/tusharbhutt/Endless-Nodes
Restart, and you'll get the Endless πβ¨ menu. General pack caveat: single-author hobby project, GPL v3, author explicitly says "no promises... that I will maintain them." Fine for utility nodes, just don't build your whole pipeline on it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| StringValue | STRING | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| NUMBER | NUMBER | β |