ComfyUI Node Runs on cloud

Number to Text

The bridge between WAS's number nodes and its text nodes

By WASasquatch·Created 3 years ago·Updated about a year ago· 1,812
Number to Text

      WAS Node Suite has two parallel little ecosystems living inside it: a NUMBER family (Number Operation, Random Number, Constant Number, Image to Seed, and friends) and a text/STRING family (Text Concatenate, Save Text File, all the token-parsing nodes). They don't talk to each other by default - a NUMBER output won't plug into a text input - and Number to Text is the plain, unglamorous converter that lets you cross that gap.

      The obvious reason you'd want that: displaying a computed value somewhere text lives. WAS's Save Image and Save Text File nodes support text tokens like [time] and [hostname] baked right into filenames, and you can register your own custom tokens too - if you want a computed number in there (a batch index, a CFG value you swept, a seed-derived counter), you first need it as a string, not a number. Same story if you want to eyeball a number mid-graph: WAS's console-print nodes take text, not numbers directly for every type, so converting first is often the path of least resistance. It's connective tissue, not a feature in its own right, but it's the kind of node that quietly unblocks a dozen other things once it's in your toolbox.

      Functionally it's exactly what it says: a NUMBER goes in, a STRING comes out. If the number's a float, expect some kind of formatting/precision control on the node - that's typical for this kind of converter in WAS's suite - but the core behavior doesn't need more explanation than "number becomes text." From there the output slots into Text Concatenate to build a filename or label, into a text token registration, or straight into a console-print node so you can actually see what a chain of number math produced before it goes somewhere consequential.

      Installing it: ComfyUI Manager, search "WAS Node Suite," install, restart - the fast path. Manual install: cd ComfyUI/custom_nodes && git clone https://github.com/WASasquatch/was-node-suite-comfyui, then pip install -r requirements.txt (portable installs use python_embeded\python.exe -s -m pip install -r requirements.txt; manual/venv installs need the venv activated first), then restart ComfyUI. No model download, no extra Python dependency specific to this node - it rides along with however the rest of the suite installs.

      Where it bites: on its own, basically nowhere - it's pure string formatting with no external moving parts. The thing worth knowing is the pack it lives in: WAS Node Suite has been unmaintained since December 2023 (its own README says "Retired"), and the recurring failure mode the community reports is the whole suite failing to import after a ComfyUI update, not individual nodes like this one misbehaving. If you can't find Number to Text in your node search, check your ComfyUI startup log for an import error on WAS Node Suite as a whole before assuming this particular node is the problem - it almost never is. The one number-specific thing to keep in mind: if you're formatting a float and expecting a specific number of decimal places in a filename, check the actual output once before you rely on it in a batch run, since default precision can differ from what you'd assume.

      Categoryx

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs