Visit ComfyUI Online for ready-to-use ComfyUI environment
Converts textual numbers to numerical values for seamless integration and manipulation in workflows.
The Text to Number node is designed to convert textual representations of numbers into their numerical equivalents. This node is particularly useful when you have numeric data stored as text and need to perform mathematical operations or further processing on it. By converting text to a number, you can seamlessly integrate and manipulate data within your workflows. The node intelligently determines whether the text represents an integer or a floating-point number and converts it accordingly, ensuring accurate and efficient data handling.
The text
parameter is the input text that you want to convert into a number. This parameter accepts a string that represents a numeric value. The node will automatically detect if the text contains a decimal point to determine whether to convert it to an integer or a floating-point number. For example, "123" will be converted to an integer, while "123.45" will be converted to a float. This parameter is required and must be a valid numeric string to avoid errors during conversion.
The NUMBER
output parameter is the result of the conversion process. It provides the numeric equivalent of the input text. If the input text represents an integer, the output will be an integer. If the input text represents a floating-point number, the output will be a float. This output is crucial for subsequent nodes that require numeric inputs for further processing or calculations.
© Copyright 2024 RunComfy. All Rights Reserved.