Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The Number Convert node transforms various input data types into numeric values. It accepts a single input of type integer, float, string, or boolean and produces two outputs: a floating-point number and an integer. This is useful for converting text or logical values into a format that can be used by other mathematical or processing nodes in your workflow.

Inputs

ParameterData TypeRequiredRangeDescription
valueINT, FLOAT, STRING, BOOLEANYesN/AThe value to be converted into numeric outputs. Accepts an integer, a floating-point number, a text string, or a true/false boolean.
Note: When the input is a string, it must not be empty and must contain a valid representation of a number (e.g., "123", "3.14"). The node will raise an error for empty strings, text that cannot be parsed as a number, or values that are not finite (like "inf" or "nan"). For boolean inputs, true converts to 1.0 (FLOAT) and 1 (INT), while false converts to 0.0 (FLOAT) and 0 (INT). For float inputs, the integer output is obtained by truncating the decimal portion.

Outputs

Output NameData TypeDescription
FLOATFLOATThe input value converted to a floating-point number.
INTINTThe input value converted to an integer. For float inputs, this performs a truncation.

Source fingerprint (SHA-256): 3a5501a3916df827b0376e4ba9c8b9972a91485cca38e067b683bb5f96c1d53c