ComfyUI > Nodes > ComfyUI-outputlists-combiner > Convert To Int Float Str

ComfyUI Node: Convert To Int Float Str

Class Name

ConvertNumberToIntFloatStr

Category
Utility
Author
geroldmeisinger (Account age: 1214days)
Extension
ComfyUI-outputlists-combiner
Latest Updated
2025-12-23
Github Stars
0.06K

How to Install ComfyUI-outputlists-combiner

Install this extension via the ComfyUI Manager by searching for ComfyUI-outputlists-combiner
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-outputlists-combiner 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

Convert To Int Float Str Description

Transforms number-like inputs into integer, float, and string formats, extracting and counting numbers.

Convert To Int Float Str:

The ConvertNumberToIntFloatStr node is designed to transform any input that resembles a number into three distinct formats: integer, float, and string. This node is particularly useful for processing data that may be presented in various forms, such as actual numbers, numbers embedded within strings, or strings containing multiple numbers with separators. By leveraging the nums_from_string.get_nums method, the node is highly flexible and can handle a wide range of number-like inputs, making it an essential tool for AI artists who need to manipulate numerical data efficiently. The node's primary goal is to extract numbers from the input, convert them into different formats, and provide a count of the numbers found, thus offering a comprehensive solution for number conversion tasks.

Convert To Int Float Str Input Parameters:

number

The number parameter accepts any input that can be meaningfully converted into a string containing parseable numbers. This includes actual integers and floats, as well as strings that represent numbers or contain multiple numbers separated by non-comma characters. The parameter is designed to be highly permissive, allowing for a wide range of inputs to be processed. There are no specific minimum, maximum, or default values for this parameter, as its purpose is to accommodate any number-like input.

Convert To Int Float Str Output Parameters:

int

The int output provides a list of all numbers found in the input, with each number converted to an integer by truncating any decimal parts. This output is useful for scenarios where whole numbers are required, and it helps in simplifying numerical data by removing fractional components.

float

The float output delivers a list of all numbers found in the input, maintaining their original decimal precision. This output is essential for tasks that require precise numerical data, allowing you to work with the exact values extracted from the input.

string

The string output consists of a list of numbers found in the input, each converted to a string format. This output is beneficial for situations where numerical data needs to be represented as text, facilitating further text-based processing or display.

count

The count output provides the total number of numbers identified in the input. This output is valuable for understanding the extent of numerical data present in the input and can be used to verify the completeness of the conversion process.

Convert To Int Float Str Usage Tips:

  • Use this node to quickly convert complex strings containing multiple numbers into usable numerical formats for further processing or analysis.
  • Avoid using commas as separators in the input string, as they may be misinterpreted as thousand-separators, potentially leading to incorrect number extraction.

Convert To Int Float Str Common Errors and Solutions:

Invalid input type

  • Explanation: The input provided is not convertible to a string with parseable numbers.
  • Solution: Ensure that the input is either a number or a string containing numbers. Avoid using non-numeric characters that cannot be interpreted as part of a number.

No numbers found

  • Explanation: The input string does not contain any recognizable numbers.
  • Solution: Check the input to ensure it includes valid numbers. If the input is a string, verify that it contains numeric characters or is formatted correctly to represent numbers.

Convert To Int Float Str Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-outputlists-combiner
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.