Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Sage Utils > Number to String

ComfyUI Node: Number to String

Class Name

Sage_NumberToStr

Category
Sage Utils/text
Author
arcum42 (Account age: 6442days)
Extension
Sage Utils
Latest Updated
2026-05-17
Github Stars
0.03K

How to Install Sage Utils

Install this extension via the ComfyUI Manager by searching for Sage Utils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Sage Utils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Number to String Description

Converts numbers to strings for easy integration into text outputs, supporting integers and floats.

Number to String:

The Sage_NumberToStr node is designed to seamlessly convert numerical values into their string representations, making it an essential tool for scenarios where numerical data needs to be integrated into text-based outputs. This node is particularly beneficial in applications where dynamic text generation is required, such as creating labels, annotations, or any text content that includes numbers. By converting numbers to strings, it allows for easy concatenation with other text elements, ensuring that numerical data can be presented in a readable and user-friendly format. The node supports both integer and floating-point numbers, providing flexibility in handling different types of numerical data. Its primary goal is to facilitate the integration of numerical values into textual contexts without the need for complex programming or manual conversion processes.

Number to String Input Parameters:

num_type

The num_type parameter determines the type of numerical input that will be converted to a string. It offers two options: float and int. When float is selected, the node expects a floating-point number, which can include decimal values, and the default value is set to 0.0 with a step increment of 0.01. This allows for precise control over decimal values. When int is selected, the node expects an integer value, with a default of 0. This parameter is crucial as it dictates how the input number is interpreted and subsequently converted into a string. By selecting the appropriate num_type, you ensure that the conversion process accurately reflects the intended numerical format.

Number to String Output Parameters:

str

The str output parameter provides the string representation of the input number. This output is crucial for integrating numerical data into text-based outputs, allowing for seamless concatenation with other text elements. The conversion process ensures that the numerical value is accurately represented as a string, maintaining its original format whether it is an integer or a floating-point number. This output is particularly useful in applications where dynamic text generation is required, enabling the creation of text content that includes numerical data in a readable and user-friendly format.

Number to String Usage Tips:

  • Ensure that you select the correct num_type based on the numerical data you are working with to avoid unexpected results in the string conversion.
  • Use the str output to easily integrate numerical values into text-based outputs, such as labels or annotations, without needing additional formatting.

Number to String Common Errors and Solutions:

Incorrect num_type selection

  • Explanation: If the num_type is not correctly set to match the input number's type, the conversion may not yield the expected string format.
  • Solution: Double-check the num_type setting to ensure it matches the type of the input number (either float or int) before executing the node.

Unexpected string output

  • Explanation: The output string may not appear as expected if the input number is not correctly formatted or if there are additional characters in the input.
  • Solution: Verify that the input number is correctly formatted and free of any extraneous characters that could affect the conversion process.

Number to String Related Nodes

Go back to the extension to check out more related nodes.
Sage Utils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Number to String